EllisLab/CodeIgniter — Issue #804: Profiler doesn't account for object in config
Author: ayz-danielsmith
Created: 2011-12-20 19:40:13+00:00
State: open

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

## Fix
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);
}```