From 0db8d00d298f8f67d6843f016a5a6259edff9f96 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 15 Aug 2012 15:15:54 +0200 Subject: PDO: quote null values as NULL instad of an empty string --- program/include/rcube_db.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/include/rcube_db.php b/program/include/rcube_db.php index 042ca15e4..f97d70ab3 100644 --- a/program/include/rcube_db.php +++ b/program/include/rcube_db.php @@ -576,6 +576,10 @@ class rcube_db return intval($input); } + if (is_null($input)) { + return 'NULL'; + } + // create DB handle if not available if (!$this->dbh) { $this->db_connect('r'); -- cgit v1.2.3