summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/functions/query.php')
-rw-r--r--shared/functions/query.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/shared/functions/query.php b/shared/functions/query.php
index d92ee0f..88f177a 100644
--- a/shared/functions/query.php
+++ b/shared/functions/query.php
@@ -1,8 +1,9 @@
<?php
-function query($q) {
- debug('query', $q);
+function &query($q) {
// 5.3.0: func_get_args() can be used directly in call_user_func_array()
$args=func_get_args();
- return call_user_func_array(array(&$GLOBALS['S']['pdo'], 'query'), $args);
+ $r=call_user_func_array(array(&$GLOBALS['S']['pdo'], 'query'), $args);
+ debug('query', "$q (".$r->rowCount()." rows affected)");
+ return $r;
}
?>