From 66a6fd8df07ea18de77c640a7ae08c2a3f630c85 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 6 Oct 2010 18:14:11 -0700 Subject: more instrumentation --- include/dba.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/dba.php') diff --git a/include/dba.php b/include/dba.php index 9e44db5fb..0e790d4c1 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; -- cgit v1.2.3