summaryrefslogtreecommitdiff
path: root/modules/organize/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-08 19:27:08 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-08 19:27:08 -0800
commit4c80ed53d2a3fa3392d2da61c730b6d30de9f2be (patch)
tree27b8d89c6eae5c6ff678f10af86332c411b8af8f /modules/organize/controllers
parentd0df4896b0c96099709b10fa8cbb7d15a4f20461 (diff)
Put up a more visually pleasing placeholder for items that are
missing a thumbnail. Fixes #1591.
Diffstat (limited to 'modules/organize/controllers')
-rw-r--r--modules/organize/controllers/organize.php2
1 files changed, 1 insertions, 1 deletions
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,