From f300ebfbd1c065f37136a63b11030bb1fb7c4ab5 Mon Sep 17 00:00:00 2001 From: esensar Date: Tue, 31 May 2016 23:43:24 +0200 Subject: [PATCH] Fix index bug --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 0a110e9..98d6062 100644 --- a/index.php +++ b/index.php @@ -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];