summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index 251b53e..9ca1de1 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -1329,7 +1329,7 @@
if (!$this->_is_new) { // UPDATE
// If there are no dirty values, do nothing
- if (count($values) == 0) {
+ if (empty($values) && empty($this->_expr_fields)) {
return true;
}
$query = $this->_build_update();