From c7f0b83c0da6f807f5859d5d666c1dfd009019b9 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Tue, 06 Nov 2012 10:11:11 -0500 Subject: [PATCH] Implemented: FS#2437 - iterate_query in dovecot-sql.conf is missing The query is added for reference and is commented out by default as it is not compatible with dovecot 1.2 and not required by ispconfig. --- interface/lib/classes/form.inc.php | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/lib/classes/form.inc.php b/interface/lib/classes/form.inc.php index 4feb329..898cbe6 100644 --- a/interface/lib/classes/form.inc.php +++ b/interface/lib/classes/form.inc.php @@ -140,6 +140,7 @@ * @return record */ function decode($record) { + global $app; if(is_array($record)) { foreach($record as $key => $val) { switch ($this->tableDef[$key]['datatype']) { @@ -154,7 +155,7 @@ break; case 'INTEGER': - $new_record[$key] = intval($val); + $new_record[$key] = $app->functions->intval($val); break; case 'DOUBLE': @@ -306,7 +307,7 @@ } break; case 'INTEGER': - $new_record[$key] = intval($val); + $new_record[$key] = $app->functions->intval($val); break; case 'DOUBLE': $new_record[$key] = $app->db->quote($val); -- Gitblit v1.9.1