aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dba.php b/include/dba.php
index 044263194..54084d835 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -134,6 +134,16 @@ function q($sql) {
return $ret;
}}
+// raw db query, no arguments
+
+if(! function_exists('dbq')) {
+function dbq($sql) {
+
+ global $db;
+ $ret = $db->q($sql);
+ return $ret;
+}}
+
// Caller is responsible for ensuring that any integer arguments to
// dbesc_array are actually integers and not malformed strings containing