From a32c99e28817922e2b15a3252de3336ec5ca39b4 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 16 May 2004 09:28:41 +0000 Subject: [PATCH] To prevent notices in unusual situations (empty lang files) bug 1404 --- lib/moodlelib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 5cb48ca316..e22f8f0e22 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1767,6 +1767,7 @@ function get_string_from_file($identifier, $langfile, $destination) { static $strings; // Keep the strings cached in memory. if (empty($strings[$langfile])) { + $string = array(); include ($langfile); $strings[$langfile] = $string; } else { -- 2.39.5