To prevent notices in unusual situations (empty lang files) bug 1404

This commit is contained in:
moodler 2004-05-16 09:28:41 +00:00
parent 952b728086
commit a32c99e288

View file

@ -1767,6 +1767,7 @@ function get_string_from_file($identifier, $langfile, $destination) {
static $strings; // Keep the strings cached in memory. static $strings; // Keep the strings cached in memory.
if (empty($strings[$langfile])) { if (empty($strings[$langfile])) {
$string = array();
include ($langfile); include ($langfile);
$strings[$langfile] = $string; $strings[$langfile] = $string;
} else { } else {