aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-06 16:10:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-06 16:10:22 +0000
commit80ebbfd7d33cda2e44e74edb1cb86b0f3a21f46e (patch)
treec457fc2793c2a552a8e549968eaebc407a849f42 /engine/lib
parent6a9c50a8d16ce5c86bcf0e61a8e8f73843e8b45c (diff)
downloadelgg-80ebbfd7d33cda2e44e74edb1cb86b0f3a21f46e.tar.gz
elgg-80ebbfd7d33cda2e44e74edb1cb86b0f3a21f46e.tar.bz2
fixes #1486 - elgg_dump now works when sending to server error log
git-svn-id: http://code.elgg.org/elgg/trunk@3909 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index c14565e5e..e6da00969 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1931,10 +1931,8 @@ function elgg_dump($value, $to_screen = TRUE, $level = 'NOTICE') {
echo '<pre>';
print_r($value);
echo '</pre>';
- }
- else
- {
- error_log(var_export($value));
+ } else {
+ error_log(print_r($value, TRUE));
}
}