dba_pdo: return false on q() DB error like the old driver did

This commit is contained in:
zotlabs 2016-11-17 15:15:34 -08:00
parent 5a71984b38
commit 3b6248cb64

View file

@ -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) {