summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-08-15 15:15:54 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-08-15 15:15:54 +0200
commit0db8d00d298f8f67d6843f016a5a6259edff9f96 (patch)
tree98810f971a36bdcbbac30da86e2fe05ad2417713 /program
parentc086978f6a91eacb339fd2976202fca9dad2ef32 (diff)
PDO: quote null values as NULL instad of an empty string
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_db.php4
1 files changed, 4 insertions, 0 deletions
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');