X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba_pdo.php;h=7b720fb6c1217e31be5ae0368ea9facbdfcf229e;hb=20befee9eda5238fbd4691df8ccf88e7d497a2cf;hp=eed9ea1251150e29342a3fe35f8417eaad28073b;hpb=a588ae4022cf3715ac4801a8ed9633b1be1d3dfb;p=friendica.git diff --git a/include/dba_pdo.php b/include/dba_pdo.php index eed9ea1251..7b720fb6c1 100644 --- a/include/dba_pdo.php +++ b/include/dba_pdo.php @@ -182,13 +182,13 @@ class dba { * These usually indicate SQL syntax errors that need to be resolved. */ - if($result === false) { + if(isset($result) AND ($result === false)) { logger('dba: ' . printable($sql) . ' returned false.' . "\n" . $this->error); if(file_exists('dbfail.out')) file_put_contents('dbfail.out', datetime_convert() . "\n" . printable($sql) . ' returned false' . "\n" . $this->error . "\n", FILE_APPEND); } - if(($result === true) || ($result === false)) + if(isset($result) AND (($result === true) || ($result === false))) return $result; if ($onlyquery) {