aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_pdo.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-30 19:45:46 -0800
committerzotlabs <mike@macgirvin.com>2016-11-30 19:45:46 -0800
commit83a4999dbee17262e6f14cec6cda220e07b88c0e (patch)
treed9010e35509aca9358b58ab4e7428c9aafbac4aa /include/dba/dba_pdo.php
parentabf1d7da232836ce8af18ae3db8e2ffd42d1a414 (diff)
downloadvolse-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
Diffstat (limited to 'include/dba/dba_pdo.php')
-rwxr-xr-xinclude/dba/dba_pdo.php2
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);