diff options
Diffstat (limited to 'core/helpers/album.php')
-rw-r--r-- | core/helpers/album.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php index 223a057d..c45b9bd8 100644 --- a/core/helpers/album.php +++ b/core/helpers/album.php @@ -33,7 +33,7 @@ class album_Core { * @return Item_Model */ static function create($parent, $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"); } |