summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-08-30 18:27:40 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-08-30 18:27:40 -0700
commite7f5e0a9a3a19d535a69e19c4527800096ae1aaa (patch)
tree15662d3291b18ae0aefa6b2cea04d2f2fcf54740 /modules/gallery/libraries
parentdf38a890a64dd33eafe3aed51ce8fde732cf8b8b (diff)
parent31dcdcc6ad6ce47c03265f3d6e499774a17ff727 (diff)
Merge commit 'upstream/master'
Conflicts: modules/gallery/views/l10n_client.html.php modules/organize/views/organize_tree.html.php modules/server_add/helpers/server_add_event.php
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index a7defba9..9b3e1f2b 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -212,8 +212,7 @@ class ORM_MPTT_Core extends ORM {
* @return ORM_MTPP
*/
function move_to($target) {
- if ($this->left_ptr <= $target->left_ptr &&
- $this->right_ptr >= $target->right_ptr) {
+ if ($this->is_descendant($target)) {
throw new Exception("@todo INVALID_TARGET can't move item inside itself");
}