Fix index bug

master
esensar 2016-05-31 23:43:24 +02:00
parent 9b6f98d2c8
commit f300ebfbd1
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
$counter = 0;
foreach ($newsFile as $news) {
$nesto = str_getcsv($news);
if($nesto.length < 3) continue;
if(count($nesto) < 3) continue;
$timesArray[$counter] = $nesto[0];
$imagesArray[$counter] = $nesto[1];
$newsArray[$counter] = $nesto[2];