[evolvis-commits] r17569: fix to php notice

papel at evolvis.org papel at evolvis.org
Fri Sep 23 09:48:24 CEST 2011


Author: papel
Date: 2011-09-23 09:48:24 +0200 (Fri, 23 Sep 2011)
New Revision: 17569

Modified:
   trunk/gforge_base/evolvisforge/gforge/www/themes/evolvis/Theme.class.php
Log:
fix to php notice

Modified: trunk/gforge_base/evolvisforge/gforge/www/themes/evolvis/Theme.class.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/www/themes/evolvis/Theme.class.php	2011-09-22 10:43:43 UTC (rev 17568)
+++ trunk/gforge_base/evolvisforge/gforge/www/themes/evolvis/Theme.class.php	2011-09-23 07:48:24 UTC (rev 17569)
@@ -120,9 +120,12 @@
 
 	function emit_headlink($inblock,$tooltip,$redslash,$redtext,$target,$text) {
 		$tooltip = util_html_secure(util_ifsetor($tooltip,""));
-		if ($tooltip[0] == '-') {
-			$tooltip = "";
+		if(is_array($tooltip)) {
+			if ($tooltip[0] == '-') {
+				$tooltip = "";
+			}
 		}
+
 		if ($inblock || $tooltip) {
 			$rv = '<span';
 			if ($inblock) {



More information about the evolvis-commits mailing list