Author: sevein
Date: Tue Oct 4 17:13:43 2011
New Revision: 9917
Log:
Check if the column is set
Modified:
trunk/apps/qubit/modules/search/templates/indexSuccess.php
Modified: trunk/apps/qubit/modules/search/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/indexSuccess.php Tue Oct 4
15:50:19 2011 (r9916)
+++ trunk/apps/qubit/modules/search/templates/indexSuccess.php Tue Oct 4
17:13:43 2011 (r9917)
@@ -31,9 +31,11 @@
<h2><?php echo link_to($doc->title, array('slug' => $doc->slug,
'module' => 'informationobject')) ?><?php if
(QubitTerm::PUBLICATION_STATUS_DRAFT_ID == $doc->publicationStatusId): ?> <span
class="publicationStatus">draft</span><?php endif; ?></h2>
- <div>
- <?php echo highlight_text(truncate_text($doc->scopeAndContent, 256),
$sf_request->query) ?>
- </div>
+ <?php if (isset($doc->scopeAndContent)): ?>
+ <div>
+ <?php echo highlight_text(truncate_text($doc->scopeAndContent,
256), $sf_request->query) ?>
+ </div>
+ <?php endif; ?>
<?php if ($doc->referenceCode): ?>
<?php echo render_show(__('Reference code'),
render_value($doc->referenceCode)); ?>
--
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.