summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-09-03 12:07:09 +0000
committerDries Buytaert2003-09-03 12:07:09 +0000
commitdad4938e3ae909f2c50512b11a2412dd09dc0f46 (patch)
treef85b2b769738ad3159be58448dbdd414275275d6
parent120525632ba3f39474fd9bcea90160064a660ffd (diff)
- Fix for bug #2691: crash due to locale module. Patch by Bruno.
-rw-r--r--modules/locale.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale.module b/modules/locale.module
index 4e8c4d5..8a64bde 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -284,7 +284,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 {