From ffa39470d8513396e33f56e018cba22b35419dfc Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 2 Apr 2008 17:33:40 +0000 Subject: Assorted entity fixes git-svn-id: https://code.elgg.org/elgg/trunk@376 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/database.php') 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; } -- cgit v1.2.3