diff options
author | Raul Baldner junior <raul_baldner_junior@hotmail.com> | 2012-07-31 20:59:10 +0200 |
---|---|---|
committer | Raul Baldner junior <raul_baldner_junior@hotmail.com> | 2012-07-31 20:59:10 +0200 |
commit | 38339acb3de57283a63a72b2febe43fef9411453 (patch) | |
tree | 9509c51095cbf557788656d05981b1de1a4ae80a /system | |
parent | 7af48d061b7b4250fdb54466655ad1067856d326 (diff) |
Fix warning by profiler when userdata has objects
If session data has objects and profiler is enabled, a warning is trown:
> A PHP Error was encountered
> Severity: Warning
> Message: htmlspecialchars() expects parameter 1 to be string, object given
> Filename: libraries/Profiler.php
> Line Number: 514
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Profiler.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index 082a5ee1d..0e0bde97f 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -506,7 +506,7 @@ class CI_Profiler { foreach ($this->CI->session->all_userdata() as $key => $val) { - if (is_array($val)) + if (is_array($val) || is_object($val)) { $val = print_r($val, TRUE); } |