diff options
-rw-r--r-- | App.php | 2 | ||||
-rw-r--r-- | Db.php | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -18,8 +18,6 @@ class App if (empty($param)) { $action = "index"; } - -// $conf['basedir'] = dirname(dirname(__FILE__) . "/system"); if (!$controller) { $controller = "user"; @@ -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; } |