summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idiorm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/idiorm.php b/idiorm.php
index 9424d4a..7dbf9af 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -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 {}