Skip to content
This repository

Profiler doesn't account for object in config #804

ayz-danielsmith opened this Issue · 2 comments

3 participants

ayz-danielsmith Andrey Andreev bretticus


A PHP Error was encountered
Severity: Warning
Message: htmlspecialchars() expects parameter 1 to be string, object given
Filename: libraries/Profiler.php
Line Number: 456


Add is_object to the conditional so that it prints the object as a string the same way it does for arrays.

if (is_array($val) || is_object($val))
$val = print_r($val, TRUE);


Thanks for this post. At least I was able to create a MY_Profiler class that extends the core version with your fix. Yes, just a warning but not optimal nor is the warning appealing when developing.

Andrey Andreev

Resolved: 963386b

Andrey Andreev narfbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.