diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-03 12:05:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-03 12:05:46 +0000 |
commit | 2c342df5a90dcfa48cd66cdda369f0944787d45a (patch) | |
tree | 15d7cac818a65a9a436f65e8e26240d94f8ee57f /modules | |
parent | 15a2cbd24341a003a82be5b53723e269d21fe8d0 (diff) | |
download | brdo-2c342df5a90dcfa48cd66cdda369f0944787d45a.tar.gz brdo-2c342df5a90dcfa48cd66cdda369f0944787d45a.tar.bz2 |
- Fix for bug #2691: crash due to locale module. Patch by Bruno.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/locale.module | 2 | ||||
-rw-r--r-- | modules/locale/locale.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale.module b/modules/locale.module index ce7ea86d1..9fbb3d38b 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -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 { diff --git a/modules/locale/locale.module b/modules/locale/locale.module index ce7ea86d1..9fbb3d38b 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -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 { |