summaryrefslogtreecommitdiff
path: root/core/helpers/photo.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-06 03:47:36 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-06 03:47:36 +0000
commit80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 (patch)
tree7035bf37330fabce2996f6a867c77ea00295b216 /core/helpers/photo.php
parent196ef392ab1dc32154ec8dbe49340d4aefb0d082 (diff)
Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
Diffstat (limited to 'core/helpers/photo.php')
-rw-r--r--core/helpers/photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php
index a2958aec..349e8760 100644
--- a/core/helpers/photo.php
+++ b/core/helpers/photo.php
@@ -35,7 +35,7 @@ class photo_Core {
*/
static function create($parent, $filename, $name, $title,
$description=null, $owner_id=null) {
- if (!$parent->loaded || $parent->type != "album") {
+ if (!$parent->loaded || !$parent->is_album()) {
throw new Exception("@todo INVALID_PARENT");
}