Commit b11d99fe authored by Dries's avatar Dries

parent 1a5fcacd
......@@ -340,7 +340,7 @@ function locale($string) {
$locale_t = unserialize($cache->data);
}
if (array_key_exists($string, $locale_t)) {
if (is_array($locale_t) && array_key_exists($string, $locale_t)) {
$string = $locale_t[$string];
}
else {
......
......@@ -340,7 +340,7 @@ function locale($string) {
$locale_t = unserialize($cache->data);
}
if (array_key_exists($string, $locale_t)) {
if (is_array($locale_t) && 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