aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 17:33:40 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 17:33:40 +0000
commitffa39470d8513396e33f56e018cba22b35419dfc (patch)
tree3e37d8bcd177aec434104b24f7102adcbd8452a7 /engine/lib/database.php
parentf2428a552af0a11c024c9f22ae0067b02c6734db (diff)
downloadelgg-ffa39470d8513396e33f56e018cba22b35419dfc.tar.gz
elgg-ffa39470d8513396e33f56e018cba22b35419dfc.tar.bz2
Assorted entity fixes
git-svn-id: https://code.elgg.org/elgg/trunk@376 36083f99-b078-4883-b0ff-0f9b5a30f544
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;
}