From 10090a6070feb8d44adc8984ad1a2de7cf12fe6e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 24 Jul 2014 23:24:10 +0200 Subject: [PATCH] Removing of warnings to make dav work --- include/dba_pdo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {