X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/77f19d6b8f8144ed33498ea04e69707f67fef240..cca05437f65a5e90c1822e0ed3a2439e3c0d98c8:/src/lib/file.php?ds=inline 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; }