X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=0e790d4c1ca493fd995fa87cf7a1ea3ea0120c2f;hb=1d2fdb259eab5af5f6ba967c61707e3a6dd9a3d0;hp=9e44db5fbb85188e4bcbf589f34e3c6192b61704;hpb=1a1f9b296c163af850d68babfb844e617f154875;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9e44db5fbb..0e790d4c1c 100644 --- a/include/dba.php +++ b/include/dba.php @@ -57,6 +57,10 @@ class dba { break; } } + else { + if(($result === false) && (file_exists('dbfail.out'))) + file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND); + } if(($result === true) || ($result === false)) return $result;