]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1486: elgg_log() can now log arrays and objects to error_log().
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 5 Feb 2010 03:31:25 +0000 (03:31 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 5 Feb 2010 03:31:25 +0000 (03:31 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3905 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 76f8430b765fb0e5bdc8fc01baf6b77281c845dc..c14565e5eb7b824032ef9c991e5940c345f23a4d 100644 (file)
@@ -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));
        }
 }