Convert all item->type == "album" to item->is_album()

Convert all item->type == "photo" to item->is_photo()
This commit is contained in:
Tim Almdal
2009-02-06 03:47:36 +00:00
parent 196ef392ab
commit 80d4df3a4a
12 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -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);
}