From 80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 6 Feb 2009 03:47:36 +0000 Subject: Convert all item->type == "album" to item->is_album() Convert all item->type == "photo" to item->is_photo() --- core/libraries/ORM_MPTT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/libraries/ORM_MPTT.php') diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index 4fa0a77a..bcbdde4e 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -204,7 +204,7 @@ class ORM_MPTT_Core extends ORM { * @return ORM_MTPP */ function move_to($target) { - if ($target->type != "album") { + if (!$target->is_album()) { throw new Exception("@todo INVALID_MOVE_TYPE $target->type"); } -- cgit v1.2.3