From: Michael Vogel Date: Thu, 24 Jul 2014 21:24:10 +0000 (+0200) Subject: Removing of warnings to make dav work X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=10090a6070feb8d44adc8984ad1a2de7cf12fe6e;p=friendica.git Removing of warnings to make dav work --- 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) {