From bfb535f63e52283c05c88f4414e1ae2a5271cecd Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 1 Feb 2006 14:28:48 +0000
Subject: [PATCH] - Patch #19444 by Gerhard: added missing initialization of
 array.

---
 modules/locale.module        | 1 +
 modules/locale/locale.module | 1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/locale.module b/modules/locale.module
index e1f305e3f3eb..4b3d25e7690f 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);
     }
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index e1f305e3f3eb..4b3d25e7690f 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/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);
     }
-- 
GitLab