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

Commit 65e7e174 authored by clint's avatar clint

more quote correction

parent 3b7ca32b
......@@ -88,7 +88,7 @@ class Album {
function getPlayCount() {
global $mdb2;
$res = $mdb2->query('SELECT COUNT(*) AS scrobbles FROM Scrobbles JOIN Track ON Scrobbles.track = Track.name WHERE rating<>"S" AND Scrobbles.artist ='
$res = $mdb2->query("SELECT COUNT(*) AS scrobbles FROM Scrobbles JOIN Track ON Scrobbles.track = Track.name WHERE rating<>'S' AND Scrobbles.artist = "
. $mdb2->quote($this->artist_name, 'text') . 'AND Track.album ='
. $mdb2->quote($this->name, 'text'));
if(!$res->numRows()) {
......
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