aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-17 15:15:34 -0800
committerzotlabs <mike@macgirvin.com>2016-11-17 15:15:34 -0800
commit3b6248cb64bb79b6bf5652bdbe145e76dd755c05 (patch)
tree366f34d4a9cc84d61a791494522fa8629b376fb6 /include/dba
parent5a71984b38bbf0a0dd4b047d923b296fe03493f3 (diff)
downloadvolse-hubzilla-3b6248cb64bb79b6bf5652bdbe145e76dd755c05.tar.gz
volse-hubzilla-3b6248cb64bb79b6bf5652bdbe145e76dd755c05.tar.bz2
volse-hubzilla-3b6248cb64bb79b6bf5652bdbe145e76dd755c05.zip
dba_pdo: return false on q() DB error like the old driver did
Diffstat (limited to 'include/dba')
-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 cb244abad..e235c467b 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -87,7 +87,7 @@ class dba_pdo extends dba_driver {
db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO);
}
}
- return $r;
+ return (($this->error) ? false : $r);
}
function escape($str) {