minor remove warning

skala
Laurent Opprecht 13 years ago
parent 82abdd7c8f
commit bbf9be6fb7
  1. 3
      main/install/install.lib.php

@ -241,6 +241,9 @@ function check_writable($folder, $suggestion = false) {
* @return array The lines of the file returned as an array
*/
function file_to_array($filename) {
if(!is_readable($filename)){
return array();
}
$fp = fopen($filename, 'rb');
$buffer = fread($fp, filesize($filename));
fclose($fp);

Loading…
Cancel
Save