Minor - Avoid warning by avoiding file not found in sub-language files reader

skala
Yannick Warnier 16 years ago
parent 8a9a807b47
commit 69a037d7b0
  1. 4
      main/admin/sub_language.class.php

@ -80,6 +80,10 @@ class SubLanguageManager {
* @return Array Contains all information of chamilo file
*/
public static function get_all_language_variable_in_file ($system_path_file) {
$res_list = array();
if (!is_readable($system_path_file)) {
return $res_list;
}
$info_file=file($system_path_file);
foreach ($info_file as $line) {
if (substr($line,0,1)!='$') { continue; }

Loading…
Cancel
Save