diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-06 03:47:36 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-06 03:47:36 +0000 |
commit | 80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 (patch) | |
tree | 7035bf37330fabce2996f6a867c77ea00295b216 /core/controllers/move.php | |
parent | 196ef392ab1dc32154ec8dbe49340d4aefb0d082 (diff) |
Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
Diffstat (limited to 'core/controllers/move.php')
-rw-r--r-- | core/controllers/move.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/move.php b/core/controllers/move.php index 26c507f9..069de771 100644 --- a/core/controllers/move.php +++ b/core/controllers/move.php @@ -39,7 +39,7 @@ class Move_Controller extends Controller { // If the target has no cover item, make this it. if ($target->album_cover_item_id == null) { $target->album_cover_item_id = - $source->type == "album" ? $source->album_cover_item_id : $source->id; + $source->is_album() ? $source->album_cover_item_id : $source->id; $target->save(); graphics::generate($target); } |