diff options
Diffstat (limited to 'Db.php')
-rw-r--r-- | Db.php | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; } |