summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'shared/functions/query.php')
-rw-r--r--shared/functions/query.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/shared/functions/query.php b/shared/functions/query.php
new file mode 100644
index 0000000..d92ee0f
--- /dev/null
+++ b/shared/functions/query.php
@@ -0,0 +1,8 @@
+<?php
+function query($q) {
+ debug('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);
+}
+?>