diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-30 19:45:46 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-30 19:45:46 -0800 |
commit | 83a4999dbee17262e6f14cec6cda220e07b88c0e (patch) | |
tree | d9010e35509aca9358b58ab4e7428c9aafbac4aa | |
parent | abf1d7da232836ce8af18ae3db8e2ffd42d1a414 (diff) | |
download | volse-hubzilla-83a4999dbee17262e6f14cec6cda220e07b88c0e.tar.gz volse-hubzilla-83a4999dbee17262e6f14cec6cda220e07b88c0e.tar.bz2 volse-hubzilla-83a4999dbee17262e6f14cec6cda220e07b88c0e.zip |
issue #606, postgres binary data handling under PDO and HHVM when passed null
-rwxr-xr-x | include/dba/dba_pdo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php index e235c467b..f76e6cdd7 100755 --- a/include/dba/dba_pdo.php +++ b/include/dba/dba_pdo.php @@ -133,7 +133,7 @@ class dba_pdo extends dba_driver { } function unescapebin($str) { - if($this->driver_dbtype === 'pgsql') { + if($this->driver_dbtype === 'pgsql' && (! is_null($str))) { $x = ''; while(! feof($str)) { $x .= fread($str,8192); |