aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 626def70b..379cfbfc0 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -125,7 +125,7 @@
* @return array An array of database result objects
*/
- function get_data($query, $callback = "") {
+ function get_data($query, $callback = "", $debug = false) {
global $CONFIG, $dbcalls;
@@ -154,8 +154,8 @@
if (empty($resultarray)) {
return false;
- }
-
+ }
+ if ($debug) var_export($resultarray);
return $resultarray;
}