Merge pull request #14 from nixolas1/listsFix

Fixing changeIt.php
This commit is contained in:
KasperRT
2014-10-10 18:10:54 +02:00

View File

@@ -10,6 +10,9 @@
{
$file = file_get_contents("oldFiles/".$list);
$data = json_decode($file);
if(count($data) > 0)
{
$array = array("nowPlaying" => array(), "songs" => array(), "conf" => array("startTime" => time(), "views" => 0, "skips" => array()));
for($i = 0; $i < count($data[0]); $i++)
{
if($i > 0)
@@ -28,6 +31,7 @@
echo $list."\n";
}
}
}
?>
</body>
</html>