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

Commit 6298544d authored by Jonas Haraldsson's avatar Jonas Haraldsson

type conversion

parent 913876fa
......@@ -40,11 +40,11 @@ class Library {
global $adodb;
$delete_query = 'DELETE FROM Scrobbles WHERE userid=? AND time=? AND artist=? AND track=?';
$delete_params = array($userid, $timestamp, $artist, $track);
$delete_params = array((int)$userid, (int)$timestamp, $artist, $track);
// TODO Should we have a db trigger for this?
$update_stats_query = 'UPDATE User_Stats SET scrobble_count=scrobble_count-1 WHERE userid=?';
$update_stats_params = array($userid);
$update_stats_params = array((int)$userid);
try {
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