summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRaul Baldner junior <raul_baldner_junior@hotmail.com>2012-07-31 20:59:10 +0200
committerRaul Baldner junior <raul_baldner_junior@hotmail.com>2012-07-31 20:59:10 +0200
commit38339acb3de57283a63a72b2febe43fef9411453 (patch)
tree9509c51095cbf557788656d05981b1de1a4ae80a /system
parent7af48d061b7b4250fdb54466655ad1067856d326 (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.php2
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);
}