Commit 2c342df5 authored by Dries's avatar Dries

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

parent 15a2cbd2
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment