aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--App.php2
-rw-r--r--Db.php9
2 files changed, 8 insertions, 3 deletions
diff --git a/App.php b/App.php
index e1428d4..ec26b58 100644
--- a/App.php
+++ b/App.php
@@ -21,8 +21,6 @@ class App
if (empty($param)) {
$action = "index";
}
-
-// $conf['basedir'] = dirname(dirname(__FILE__) . "/system");
if (!$controller) {
$controller = "user";
diff --git a/Db.php b/Db.php
index f72ba4b..e90362f 100644
--- a/Db.php
+++ b/Db.php
@@ -90,7 +90,14 @@ class Db
$data['id'] = self::getInstance()->lastInsertId();
}
- return $data;
+ // Always strip ":" prefixes from input array keys
+ $out = array();
+ foreach ($data as $k => $v) {
+ $key = ltrim($k, ':');
+ $out[$key] = $v;
+ }
+
+ return $out;
}