From: Leandro Lucarella Date: Thu, 5 May 2005 05:50:10 +0000 (+0000) Subject: Bugfix X-Git-Tag: svn_import~70 X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/commitdiff_plain/93198e80b69bf490195dfde369d04b38463ff886 Bugfix --- 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; }