From 4c80ed53d2a3fa3392d2da61c730b6d30de9f2be Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Jan 2011 19:27:08 -0800 Subject: Put up a more visually pleasing placeholder for items that are missing a thumbnail. Fixes #1591. --- modules/organize/controllers/organize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/organize/controllers') diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 62417525..bffc52f7 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -63,7 +63,7 @@ class Organize_Controller extends Controller { $dims = $child->scale_dimensions(120); $data["children"][] = array( "id" => $child->id, - "thumb_url" => $child->thumb_url(), + "thumb_url" => $child->has_thumb() ? $child->thumb_url() : null, "width" => $dims[1], "height" => $dims[0], "type" => $child->type, -- cgit v1.2.3