diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-23 10:14:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-23 10:14:13 +0200 |
commit | 39b14b6b811ec65f8c8a812397f9ee04877cd53d (patch) | |
tree | 1f122a63a4f44aed278a54fab803706d77946997 /include/dba/dba_driver.php | |
parent | 5536df51f58a65f5a42051b0466b1c13c9a9718a (diff) | |
parent | ac81a3a5effe51b82310bbd831dec06e7914e649 (diff) | |
download | volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.gz volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.tar.bz2 volse-hubzilla-39b14b6b811ec65f8c8a812397f9ee04877cd53d.zip |
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-x | include/dba/dba_driver.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index df072ed76..f6091f6e1 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -90,7 +90,7 @@ abstract class dba_driver { protected $db; protected $pdo = array(); - public $debug = 0; + public $debug = 0; public $connected = false; public $error = false; @@ -332,6 +332,9 @@ function q($sql) { else db_logger('dba: vsprintf error: ' . print_r(debug_backtrace(), true),LOGGER_NORMAL,LOG_CRIT); } + if(\DBA::$dba->debug) + db_logger('Sql: ' . $stmt, LOGGER_DEBUG, LOG_INFO); + return \DBA::$dba->q($stmt); } |