From 7b1e5bba94a04aa23e786dc345dbfca2be952076 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 18 May 2016 18:41:27 +0200 Subject: [PATCH] [wip] m_mail LIMIT shall not be quoted --- bureau/class/m_mail.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index 2fbf99ea..3dbe28c1 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -311,8 +311,9 @@ ORDER BY $db->next_record(); $this->total = $db->f("total"); if ($count != -1) { - $limit = " LIMIT ?, ? "; - array_push($query_args, $offset, $count); + $offset = intval($offset); + $count = intval($count); + $limit = " LIMIT $offset, $count "; } else { $limit = ""; }