summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorSvennd <svennson@gmail.com>2022-02-09 21:13:25 +0100
committerGitHub <noreply@github.com>2022-02-09 21:13:25 +0100
commit05d2877cc169d9f31f43e42a7c6aea5dd10facaf (patch)
tree3c9790ee036f77d95d1aca43163cd0d58a679738 /system/libraries
parentdd249ea85f54f200267bb206e6cee23497cbe2e2 (diff)
Update Profiler.php
check for null value on $val
Diffstat (limited to 'system/libraries')
-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 5531f3366..3c6a464d3 100644
--- a/system/libraries/Profiler.php
+++ b/system/libraries/Profiler.php
@@ -496,7 +496,7 @@ class CI_Profiler {
}
$output .= '<tr><td style="padding:5px;vertical-align:top;color:#900;background-color:#ddd;">'
- .$config.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars($val, ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n";
+ .$config.'&nbsp;&nbsp;</td><td style="padding:5px;color:#000;background-color:#ddd;">'.$pre.htmlspecialchars((($val) ? $val :''), ENT_QUOTES, config_item('charset')).$pre_close."</td></tr>\n";
}
return $output."</table>\n</fieldset>";