summaryrefslogtreecommitdiff
path: root/modules/locale.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/locale.module')
-rw-r--r--modules/locale.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/locale.module b/modules/locale.module
index e1f305e3f..4b3d25e76 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -196,6 +196,7 @@ function locale_refresh_cache() {
foreach (array_keys($languages['name']) as $locale) {
$result = db_query("SELECT s.source, t.translation, t.locale FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid WHERE t.locale = '%s' AND LENGTH(s.source) < 75", $locale);
+ $t = array();
while ($data = db_fetch_object($result)) {
$t[$data->source] = (empty($data->translation) ? TRUE : $data->translation);
}