diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-04-16 09:24:22 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-04-16 09:24:22 +0200 |
commit | a8b78dc1f5080629717adc2d942399096397819d (patch) | |
tree | 5ef9fe5a50ce20c4a4151476e251f06e0df24dbf /include/dba/dba_pdo.php | |
parent | bbe58dd550cbcc6f31c42dd55a326f971952c884 (diff) | |
parent | 19888b95cc99a4a1333431909067b8147de7892c (diff) | |
download | volse-hubzilla-a8b78dc1f5080629717adc2d942399096397819d.tar.gz volse-hubzilla-a8b78dc1f5080629717adc2d942399096397819d.tar.bz2 volse-hubzilla-a8b78dc1f5080629717adc2d942399096397819d.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/dba/dba_pdo.php')
-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); |