Added more specified feedback on voting

This commit is contained in:
Kasper Rynning-Tønnesen
2015-01-31 13:14:39 +01:00
parent cf19b82faa
commit fc51da0616
2 changed files with 9 additions and 7 deletions

View File

@@ -181,10 +181,13 @@ else if(isset($_GET['vote'])){ //if th
array_multisort($sort['votes'], SORT_DESC, $sort['added'], SORT_ASC, $data["songs"]);
file_put_contents($list, json_encode($data));
echo "Vote registrated. I hope";
}else
{
print("many");
}
}else
{
echo array_key_exists($id, $data["songs"]); //not in use..i think..
print("many"); //not in use..i think..
}
}else{
print("wrong");