mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
dba_pdo: return false on q() DB error like the old driver did
This commit is contained in:
parent
5a71984b38
commit
3b6248cb64
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue