Fixed so datalist still contains all channels

This commit is contained in:
Kasper Rynning-Tønnesen
2015-02-13 00:56:47 +01:00
parent ac5c945ccd
commit 2e3b2f4d4e

View File

@@ -31,7 +31,7 @@ foreach($fil as $files){
if($time_lasted < $time){
$file = file_get_contents($files); //Checking if the channel has the setting for showing on the frontpage set to true.
$data = json_decode($file, TRUE);
if(!array_key_exists("frontpage", $data['conf']) || $data['conf']['frontpage'] == "true" && $i <= 14){ //If it is true, the channelname will be shown on the frontpage
if(!array_key_exists("frontpage", $data['conf']) || $data['conf']['frontpage'] == "true" && $i <= 8){ //If it is true, the channelname will be shown on the frontpage
array_push($channels, ucfirst(str_replace(".json", "", $files)));
}
}