diff options
author | Simon Holywell <[email protected]> | 2012-11-15 08:49:49 -0800 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2012-11-15 08:49:49 -0800 |
commit | 9540052d0df94d6a4837d24eb21039d2c10cff6a (patch) | |
tree | 0518da57c1be285c252e50e625492a35e298da70 | |
parent | 87b05b7da4290ab15c667a32982e1c6327eed582 (diff) | |
parent | 8e7638a3174a63ecc100e2a570b9d06c4b44bd78 (diff) |
Merge pull request #72 from hellogerard/invalid-params
Fix bug where input parameters were sent as part-indexed, part associati...
-rw-r--r-- | idiorm.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1267,7 +1267,7 @@ $query = array(); // remove any expression fields as they are already baked into the query - $values = array_diff_key($this->_dirty_fields, $this->_expr_fields); + $values = array_values(array_diff_key($this->_dirty_fields, $this->_expr_fields)); if (!$this->_is_new) { // UPDATE // If there are no dirty values, do nothing @@ -1493,4 +1493,4 @@ /** * A placeholder for exceptions eminating from the IdiormString class */ - class IdiormStringException extends Exception {}
\ No newline at end of file + class IdiormStringException extends Exception {} |