summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2013-01-03 15:31:07 +0000
committerSimon Holywell <[email protected]>2013-01-03 15:31:07 +0000
commit3439ca1d152acf55ee43c81831d1098835dac58e (patch)
treec104537f4ed5b1b2fd5db07fc76c61168d461eee /idiorm.php
parentb241439aec5dd4123e9d6d4fbf5f60364b027797 (diff)
Issue #90 When using set_expr alone it doesn't trigger query creation
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();