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

Commit d3f8d253 authored by clint's avatar clint

more ugh

parent d3685f17
......@@ -181,9 +181,9 @@ class Server {
if($username) {
$res = $mdb2->query("SELECT
username,
artist,
album,
track,
n.artist,
n.track,
n.album,
client,
ClientCodes.name,
ClientCodes.url,
......@@ -201,13 +201,13 @@ class Server {
AND lower(n.track) = lower(t.name)
WHERE s.rating<>'S'
WHERE lower(username) = " . $mdb2->quote(strtolower($username), "text") . "
ORDER BY Now_Playing.expires DESC LIMIT " . $mdb2->quote($number, "integer"));
ORDER BY n.expires DESC LIMIT " . $mdb2->quote($number, "integer"));
} else {
$res = $mdb2->query("SELECT
username,
artist,
track,
album,
n.artist,
n.track,
n.album,
client,
ClientCodes.name,
ClientCodes.url,
......@@ -223,7 +223,7 @@ class Server {
ON lower(n.artist) = lower(t.artist)
AND lower(n.album) = lower(t.album)
AND lower(n.track) = lower(t.name)
ORDER BY Now_Playing.expires DESC LIMIT " . $mdb2->quote($number, "integer"));
ORDER BY n.expires DESC LIMIT " . $mdb2->quote($number, "integer"));
}
if(PEAR::isError($res)) {
......
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