aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-05 03:31:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-05 03:31:25 +0000
commitc47e9d7c094a087714bb8c0cb996c13f165d4fca (patch)
treec8367091f730e08d2ad418469bffc5eccfef0bfa /engine/lib/elgglib.php
parentd1e9be283bb752900effceefcbe6c50091db3325 (diff)
downloadelgg-c47e9d7c094a087714bb8c0cb996c13f165d4fca.tar.gz
elgg-c47e9d7c094a087714bb8c0cb996c13f165d4fca.tar.bz2
Fixes #1486: elgg_log() can now log arrays and objects to error_log().
git-svn-id: http://code.elgg.org/elgg/trunk@3905 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 76f8430b7..c14565e5e 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1934,8 +1934,7 @@ function elgg_dump($value, $to_screen = TRUE, $level = 'NOTICE') {
}
else
{
- // this currently chokes on arrays and objects
- error_log($value);
+ error_log(var_export($value));
}
}