Fix index bug
This commit is contained in:
parent
9b6f98d2c8
commit
f300ebfbd1
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue