aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/dba.php b/include/dba.php
index 0e790d4c1..133b596ef 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -58,8 +58,11 @@ class dba {
}
}
else {
- if(($result === false) && (file_exists('dbfail.out')))
- file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
+ if($result === false) {
+ logger('dba: ' . printable($sql) . ' returned false.');
+ if(file_exists('dbfail.out'))
+ file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
+ }
}
if(($result === true) || ($result === false))