- Fix for bug #2691: crash due to locale module. Patch by Bruno.

4.3.x
Dries Buytaert 2003-09-03 12:05:46 +00:00
parent 15a2cbd243
commit 2c342df5a9
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ function locale($string) {
$locale_t = unserialize($cache->data);
}
if ($locale_t[$string] != "") {
if (array_key_exists($string, $locale_t)) {
$string = $locale_t[$string];
}
else {

View File

@ -314,7 +314,7 @@ function locale($string) {
$locale_t = unserialize($cache->data);
}
if ($locale_t[$string] != "") {
if (array_key_exists($string, $locale_t)) {
$string = $locale_t[$string];
}
else {