X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/1d36cfdccb8215603e3188854b5feb067484db3e..6e6538b18dfeef58d5db02165f80162c727d5092:/src/lib/file.php?ds=sidebyside 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; }