[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-04-08 15:36:59
Message-ID: 20110408153659.0DCEDAC8CF () svn ! kde ! org
[Download RAW message or body]
SVN commit 1227405 by aacid:
do not access the array directly since it causes E_NOTICES
M +6 -8 functions.inc
--- trunk/www/media/includes/functions.inc #1227404:1227405
@@ -218,14 +218,13 @@
}
else
{
- $translated = $text[$translate];
- if ($translated == "")
+ if (array_key_exists($translate, $text))
{
- $result = $translate;
+ $result = $text[$translate];
}
else
{
- $result = $translated;
+ $result = $translate;
}
}
@@ -246,14 +245,13 @@
}
else
{
- $translated = $text[$translate];
- if ($translated == "")
+ if (array_key_exists($translate, $text))
{
- print $translate;
+ print $text[$translate];
}
else
{
- print $translated;
+ print $translate;
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic