diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-15 12:41:22 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-15 12:41:22 -0800 |
commit | 1066e64354ff44f88c7dd0de3bb3e50411458523 (patch) | |
tree | 3920ace842492cb5c3a0bc2a1ddf271e2f1d4d83 /modules/gallery/libraries/ORM_MPTT.php | |
parent | 50e3cc5837df7b0ae8e2d43a3dacee7500ba6db8 (diff) |
Call parent::save() before releasing the lock to make creating the hole and filling it an atomic operation.
Diffstat (limited to 'modules/gallery/libraries/ORM_MPTT.php')
-rw-r--r-- | modules/gallery/libraries/ORM_MPTT.php | 5 |
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; } /** |