From 3b6248cb64bb79b6bf5652bdbe145e76dd755c05 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 17 Nov 2016 15:15:34 -0800 Subject: dba_pdo: return false on q() DB error like the old driver did --- include/dba/dba_pdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dba') 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) { -- cgit v1.2.3