From 56ae4ac94b1775bb58c63b5ed83bead4369dcdd1 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 26 Oct 2009 14:34:37 +0200 Subject: Changes --- App.php | 2 -- Db.php | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/App.php b/App.php index 89dda01..d7ae2e9 100644 --- a/App.php +++ b/App.php @@ -18,8 +18,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 2ce5ff0..c98d1cb 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; } -- cgit v1.2.3