From: moodler Date: Sun, 16 May 2004 09:28:41 +0000 (+0000) Subject: To prevent notices in unusual situations (empty lang files) bug 1404 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a32c99e28817922e2b15a3252de3336ec5ca39b4;p=moodle.git To prevent notices in unusual situations (empty lang files) bug 1404 --- 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 {