summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-09 07:54:37 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-09 07:54:37 +0000
commitcaa0a6d47fb5ed3faa0c321c10c86c5b6f3d7db8 (patch)
tree946276a95d825a055582158ed2234aba33decfa1 /modules
parentf0be5c7c03921cd6be7362894463823e63290f7f (diff)
Don't show the description field if there's no description
Diffstat (limited to 'modules')
-rw-r--r--modules/info/views/info_block.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index 81c2731c..956cc23d 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -5,11 +5,13 @@
<th><?= t("Title:") ?></th>
<td><?= $item->title; ?></td>
</tr>
+ <? if ($item->description): ?>
<tr>
<th><?= t("Description:") ?></th>
<td><?= $item->description; ?></td>
</tr>
- <? if ($item->id != 1): ?>
+ <? endif ?>
+ <? if ($item->id != 1): ?>
<tr>
<th><?= t("Name:") ?></th>
<td><?= $item->name; ?></td>