summaryrefslogtreecommitdiff
path: root/modules/gallery_unit_test
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-20 23:05:51 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-20 23:05:51 -0800
commit3f3159d25caaea0c46583a6505c5dcc03b4fafe2 (patch)
treeeda353d49fe9cc9f26d0575b9ce4c1fdc7f56819 /modules/gallery_unit_test
parent382214f3c13cc2ae4b927e37de7bc6e798fe900a (diff)
Guard against missing/empty $description.
Diffstat (limited to 'modules/gallery_unit_test')
-rw-r--r--modules/gallery_unit_test/views/kohana/error.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/views/kohana/error.php b/modules/gallery_unit_test/views/kohana/error.php
index c0ae7173..34053317 100644
--- a/modules/gallery_unit_test/views/kohana/error.php
+++ b/modules/gallery_unit_test/views/kohana/error.php
@@ -1,7 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?
echo $error, "\n\n";
-echo wordwrap($description, 80), "\n\n";
+if (!empty($description)) {
+ echo wordwrap($description, 80), "\n\n";
+}
if (!empty($line) && !empty($file)) {
echo $file, "[", $line, "]:\n";
}