Author: sevein
Date: Wed Feb 9 09:29:16 2011
New Revision: 8954
Log:
Check if thumbnail really exists. Fixes issue 1919.
Modified:
trunk/apps/qubit/modules/term/templates/browseTermSuccess.php
Modified: trunk/apps/qubit/modules/term/templates/browseTermSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/term/templates/browseTermSuccess.php Wed Feb
9 00:03:02 2011 (r8953)
+++ trunk/apps/qubit/modules/term/templates/browseTermSuccess.php Wed Feb
9 09:29:16 2011 (r8954)
@@ -5,8 +5,8 @@
<div class="section">
<?php foreach ($informationObjects as $item): ?>
<div class="clearfix <?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>">
-
- <?php if (isset($item->digitalObjects[0])): ?>
+
+ <?php if (isset($item->digitalObjects[0]) && null !==
$item->digitalObjects[0]->thumbnail): ?>
<?php echo
link_to(image_tag(public_path($item->digitalObjects[0]->thumbnail->getFullPath()),
array('alt' => render_title($item))), array($item, 'module' =>
'informationobject')) ?>
<?php endif; ?>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.