From 93198e80b69bf490195dfde369d04b38463ff886 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 5 May 2005 05:50:10 +0000 Subject: [PATCH] Bugfix --- src/lib/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/file.php b/src/lib/file.php index ab50b24..812cfcc 100644 --- a/src/lib/file.php +++ b/src/lib/file.php @@ -52,7 +52,7 @@ function fgetallcsv($filename, $delim = ',') { if (($f = fopen($filename, 'r')) === false) return false; $data = array(); - while (!feof($f)) $data[] = fgetcsv($f, 4096, $delim); + while ($row = fgetcsv($f, 4096, $delim)) $data[] = $row; fclose($f); return $data; } -- 2.43.0