[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    www/media/includes
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2011-08-04 10:48:38
Message-ID: 20110804104838.5EDDDAC86E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1244853 by aacid:

make sure $text is set before using it


 M  +2 -2      functions.inc  


--- trunk/www/media/includes/functions.inc #1244852:1244853
@@ -228,7 +228,7 @@
 		}
 		else
 		{
-			if (array_key_exists($translate, $text))
+			if (isset($text) && array_key_exists($translate, $text))
 			{
 				$result = $text[$translate];
 			}
@@ -264,7 +264,7 @@
 		}
 		else
 		{
-			if (array_key_exists($translate, $text))
+			if (isset($text) && array_key_exists($translate, $text))
 			{
 				print $text[$translate];
 			}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic