From 9b4dbcb337faa644e95a202be7914e2a3891488c Mon Sep 17 00:00:00 2001 From: Jonas Haraldsson Date: Sun, 24 Feb 2013 21:27:18 +0100 Subject: [PATCH] type conversion --- nixtape/data/Library.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixtape/data/Library.php b/nixtape/data/Library.php index 8af909a0..17770f64 100644 --- a/nixtape/data/Library.php +++ b/nixtape/data/Library.php @@ -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); $adodb->StartTrans(); try { -- GitLab