summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-04 15:01:39 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-04 15:01:39 +0000
commit325e51de3c553e24a35ba6eb0333a5b5aef150ef (patch)
tree3e1ed019c67af7a151afd0e787bd15d1c3a7bd0c /themes
parent0d577cbf7a6ad49f6b2f0f79f0f324f6c2ce8bd0 (diff)
downloadbrdo-325e51de3c553e24a35ba6eb0333a5b5aef150ef.tar.gz
brdo-325e51de3c553e24a35ba6eb0333a5b5aef150ef.tar.bz2
#177738 by chx: fix notice in Garland, when site_fields is an empty array
Diffstat (limited to 'themes')
-rw-r--r--themes/garland/page.tpl.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php
index f7e27fb52..66fa4a3f2 100644
--- a/themes/garland/page.tpl.php
+++ b/themes/garland/page.tpl.php
@@ -32,7 +32,9 @@
$site_fields[] = check_plain($site_slogan);
}
$site_title = implode(' ', $site_fields);
- $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
+ if ($site_fields) {
+ $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
+ }
$site_html = implode(' ', $site_fields);
if ($logo || $site_title) {