Sigh. Actually commit after the file was saved
This commit is contained in:
parent
d31c589b87
commit
5096cd88e5
|
@ -15,8 +15,9 @@ if ( false !== ($row = $sth->fetch()) ) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = "DELETE FROM " . QUEUECONTENTSTABLE . " WHERE qid=(SELECT id FROM " . QUEUESTABLE . " ";
|
$query = "DELETE FROM " . QUEUECONTENTSTABLE . " ";
|
||||||
$query .= "WHERE active='true' AND type='user') AND songid=(SELECT songid FROM " . RECENTSTABLE . " ORDER BY timeplayed DESC LIMIT 1)";
|
$query .= "WHERE qid=(SELECT id FROM " . QUEUESTABLE . " WHERE active='true' AND type='user') ";
|
||||||
|
$query .= "AND songid=(SELECT songid FROM " . RECENTSTABLE . " ORDER BY timeplayed DESC LIMIT 1)";
|
||||||
$sth = $globaldbh->prepare($query);
|
$sth = $globaldbh->prepare($query);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user