aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-12 15:50:47 -0700
committerzotlabs <mike@macgirvin.com>2017-03-12 15:50:47 -0700
commit6f3493bb3ca3718d4b69278c96df384c8a4d5811 (patch)
treec768bb7549a6f42b76b721b4736cc914c9c8b91f /include/dba
parent4c526c7d3d98a8ae0521af8af3baea196550e170 (diff)
downloadvolse-hubzilla-6f3493bb3ca3718d4b69278c96df384c8a4d5811.tar.gz
volse-hubzilla-6f3493bb3ca3718d4b69278c96df384c8a4d5811.tar.bz2
volse-hubzilla-6f3493bb3ca3718d4b69278c96df384c8a4d5811.zip
db issues
Diffstat (limited to 'include/dba')
-rwxr-xr-xinclude/dba/dba_pdo.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php
index f76e6cdd7..f119d8926 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -74,19 +74,19 @@ class dba_pdo extends dba_driver {
return $result;
}
- if($this->debug) {
- db_logger('dba_pdo: DEBUG: ' . printable($sql) . ' returned ' . count($result) . ' results.', LOGGER_NORMAL, LOG_INFO);
- }
-
$r = array();
if($result) {
foreach($result as $x) {
$r[] = $x;
}
- if($this->debug) {
- db_logger('dba_pdo: ' . printable(print_r($r,true)), LOGGER_NORMAL, LOG_INFO);
- }
}
+
+ 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);
+ }
+
+
return (($this->error) ? false : $r);
}