From d24bc5a4ea5f26f22ac1b79cf5dde62117ec7ab1 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 30 Jun 2009 22:21:45 +1000 Subject: [PATCH] Unreleased patch 1.0.x --- htdocs/template_engine.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/template_engine.php b/htdocs/template_engine.php index 16fb11a..55bc07d 100644 --- a/htdocs/template_engine.php +++ b/htdocs/template_engine.php @@ -1,5 +1,5 @@ $vals) { $description = isset($group['description']) ? $group['description'] : null; - if ($description) + if (is_array($description)) { + foreach ($description as $item) + printf(' (%s)',htmlspecialchars($item)); + } else { printf(' (%s)',htmlspecialchars($description)); + } echo ''; }