summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-01-31 15:49:26 +0000
committerDries Buytaert <dries@buytaert.net>2007-01-31 15:49:26 +0000
commit05a708fb06137758cf7a15a623b4813af2fc005f (patch)
tree6ae6f50edbcb601329805cbbd7c22d11340327e3 /modules/locale
parent4c9fc80fc48608982a731b03655b02e5ccdb6b17 (diff)
downloadbrdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.gz
brdo-05a708fb06137758cf7a15a623b4813af2fc005f.tar.bz2
- Patch #112715 by chx, webchick, asimmonds, et al: fixing E_ALL notices. Thanks.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 7b22ca5c4..dd4c88093 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -240,7 +240,7 @@ function locale_supported_languages($reset = FALSE, $getall = FALSE) {
unset($enabled); unset($all);
}
- if (is_null($enabled)) {
+ if (!isset($enabled)) {
$enabled = $all = array();
$all['name'] = $all['formula'] = $enabled['name'] = $enabled['formula'] = array();
$result = db_query('SELECT locale, name, formula, enabled FROM {locales_meta} ORDER BY isdefault DESC, enabled DESC, name ASC');