summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index 46ae0af8..404d61ff 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -73,10 +73,13 @@ class ORM_MPTT_Core extends ORM {
$this->unlock();
throw $e;
}
+ parent::save();
$this->unlock();
+ } else {
+ parent::save();
}
- return parent::save();
+ return $this;
}
/**