Fixed error

This commit is contained in:
Nicolas A. Tonne
2014-10-10 14:30:54 +02:00
parent 56c5bc4353
commit 531b35f5c9
6 changed files with 2 additions and 3 deletions

2
php/timedifference.php Normal file → Executable file
View File

@@ -2,7 +2,7 @@
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
if($list[1]==""||!isset($list[1])||count($list)<=1)$list="videos";
else $list=$list[1];
$list="..lists/".$list.".json";
$list="../lists/".$list.".json";
$data = json_decode(file_get_contents($list), true);
$songs = $data["nowPlaying"];
$id = array_values($songs);