From c47e9d7c094a087714bb8c0cb996c13f165d4fca Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 5 Feb 2010 03:31:25 +0000 Subject: 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 --- engine/lib/elgglib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine/lib/elgglib.php') 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)); } } -- cgit v1.2.3