From e20fb37038ab78c67701cae0086b78b409364147 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 21 May 2014 14:35:59 +0200 Subject: [PATCH] Correctly create list of placeholders --- lib/private/preferences.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/preferences.php b/lib/private/preferences.php index 62ef908655..a4bfc650d0 100644 --- a/lib/private/preferences.php +++ b/lib/private/preferences.php @@ -226,7 +226,7 @@ class Preferences { array_unshift($queryParams, $key); array_unshift($queryParams, $app); - $placeholders = (sizeof($chunk) == 50) ? $placeholders_50 : implode(',', array_fill(0, sizeof($users), '?')); + $placeholders = (sizeof($chunk) == 50) ? $placeholders_50 : implode(',', array_fill(0, sizeof($chunk), '?')); $query = 'SELECT `userid`, `configvalue` ' . ' FROM `*PREFIX*preferences` '