summaryrefslogtreecommitdiff
path: root/classes/database
diff options
context:
space:
mode:
authorRobert Treat2012-11-23 15:30:30 +0000
committerRobert Treat2012-11-23 15:30:30 +0000
commit00ba6912c15e04221e15574072449051af645685 (patch)
treeb73465adbbf9f7cb4b8ed61e6a0b9de1436d684a /classes/database
parentd495eecca480a9aad94dadf22c05b92ca8847ffc (diff)
don't try and escape nulls, which leads to dangling x values. fixes Sourceforge Bug ID: 3579602.
Diffstat (limited to 'classes/database')
-rwxr-xr-xclasses/database/Postgres.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index d55762d6..0d8a6887 100755
--- a/classes/database/Postgres.php
+++ b/classes/database/Postgres.php
@@ -270,7 +270,9 @@ class Postgres extends ADODB_base {
break;
case 'bytea':
case 'bytea[]':
- $value = $this->escapeBytea($value);
+ if (!is_null($value)) {
+ $value = $this->escapeBytea($value);
+ }
case 'text':
case 'text[]':
case 'xml':