fixed loading of large values

This commit is contained in:
Roland Gruber 2012-11-30 19:17:55 +00:00
parent 1270ae4e40
commit d6dcd9c632
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class LAMConfig {
$file = @fopen($conffile, "r"); $file = @fopen($conffile, "r");
if (!$file) return false; // abort if file is not readable if (!$file) return false; // abort if file is not readable
while (!feof($file)) { while (!feof($file)) {
$line = fgets($file, 1024); $line = fgets($file, 100000);
$line = trim($line); // remove spaces at the beginning and end $line = trim($line); // remove spaces at the beginning and end
if (($line == "")||($line[0] == "#")) continue; // ignore comments and empty lines if (($line == "")||($line[0] == "#")) continue; // ignore comments and empty lines
// search keywords // search keywords