diff options
author | mrjive <mrjive@mrjive.it> | 2018-04-16 17:27:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-16 17:27:14 +0200 |
commit | 283e5d3a5c9557195a640de5f0acefc884e904bb (patch) | |
tree | 86d32da9fc05d15491f4ccf04b27ea223307f323 /include | |
parent | 99dc1614836df2b69ee40382fc4b73546a847a60 (diff) | |
parent | bef5be827d15bc54c9b88bc10313b28172069fef (diff) | |
download | volse-hubzilla-283e5d3a5c9557195a640de5f0acefc884e904bb.tar.gz volse-hubzilla-283e5d3a5c9557195a640de5f0acefc884e904bb.tar.bz2 volse-hubzilla-283e5d3a5c9557195a640de5f0acefc884e904bb.zip |
Merge pull request #8 from redmatrix/dev
Dev
Diffstat (limited to 'include')
-rwxr-xr-x | include/dba/dba_pdo.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php index f24c5381a..5002f53e7 100755 --- a/include/dba/dba_pdo.php +++ b/include/dba/dba_pdo.php @@ -100,7 +100,9 @@ class dba_pdo extends dba_driver { if($this->debug) { db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returned ' . count($r) . ' results.', LOGGER_NORMAL, LOG_INFO); - db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO); + if(intval($this->debug) > 1) { + db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO); + } } return (($this->error) ? false : $r); |