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/helpers/access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers/access.php') diff --git a/core/helpers/access.php b/core/helpers/access.php index 23db5782..60e8557d 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -188,7 +188,7 @@ class access_Core { if (!$album->loaded) { throw new Exception("@todo INVALID_ALBUM $album->id"); } - if ($album->type != "album") { + if (!$album->is_album()) { throw new Exception("@todo INVALID_ALBUM_TYPE not an album"); } $access = model_cache::get("access_intent", $album->id, "item_id"); -- cgit v1.2.3