]> git.mjollnir.org Git - moodle.git/commitdiff
To prevent notices in unusual situations (empty lang files) bug 1404
authormoodler <moodler>
Sun, 16 May 2004 09:28:41 +0000 (09:28 +0000)
committermoodler <moodler>
Sun, 16 May 2004 09:28:41 +0000 (09:28 +0000)
lib/moodlelib.php

index 5cb48ca31651feb9517dfe15658bf16392203ebf..e22f8f0e22f9ac0c3c0251216bb22d79d21831df 100644 (file)
@@ -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 {