summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index c007afeb..56ee321a 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -514,6 +514,10 @@ class Item_Model extends ORM_MPTT {
parent::save();
module::event("item_updated", $original, $this);
}
+ } else if (!empty($this->changed)) {
+ // Insignificant changes only. Don't fire events or do any special checking to try to keep
+ // this lightweight.
+ parent::save();
}
return $this;