We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 10d3390a authored by clint's avatar clint

exception on nowplaying

parent 17ebd2e8
......@@ -66,6 +66,7 @@ $adodb->Execute("DELETE FROM Now_Playing WHERE expires < " . time());
//Delete this user's last playing song (if any)
$adodb->Execute("DELETE FROM Now_Playing WHERE sessionid = " . ($MQsess));
try {
$adodb->Execute("INSERT INTO Now_Playing (sessionid, artist, album, track, expires, mbid) VALUES ("
. $MQsess . ", "
. $artist . ", "
......@@ -73,7 +74,10 @@ $adodb->Execute("INSERT INTO Now_Playing (sessionid, artist, album, track, expir
. $track . ", "
. $expires . ", "
. $mbid . ")");
}
catch (exception $e) {
die("FAILED " . $e->getMessage() . "\n");
}
die("OK\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment