From 325e51de3c553e24a35ba6eb0333a5b5aef150ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Sun, 4 Nov 2007 15:01:39 +0000
Subject: [PATCH] #177738 by chx: fix notice in Garland, when site_fields is an
 empty array

---
 themes/garland/page.tpl.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/themes/garland/page.tpl.php b/themes/garland/page.tpl.php
index f7e27fb5286c..66fa4a3f23b0 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) {
-- 
GitLab