diff options
author | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-26 14:34:37 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mekanisti.fi> | 2009-10-26 14:34:37 +0200 |
commit | 56ae4ac94b1775bb58c63b5ed83bead4369dcdd1 (patch) | |
tree | 1d26dd9988ed11259e7d25e51f26184c986a80ac /Db.php | |
parent | 08cba850d34f1e3692ec2aa9ff051fdeabe47b7f (diff) | |
download | main-56ae4ac94b1775bb58c63b5ed83bead4369dcdd1.tar.gz main-56ae4ac94b1775bb58c63b5ed83bead4369dcdd1.tar.bz2 main-56ae4ac94b1775bb58c63b5ed83bead4369dcdd1.zip |
Changes
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; } |