diff options
Diffstat (limited to 'frontends/php/include/classes/debug/CProfiler.php')
-rw-r--r-- | frontends/php/include/classes/debug/CProfiler.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/frontends/php/include/classes/debug/CProfiler.php b/frontends/php/include/classes/debug/CProfiler.php index d72327f6a36..458257c1871 100644 --- a/frontends/php/include/classes/debug/CProfiler.php +++ b/frontends/php/include/classes/debug/CProfiler.php @@ -50,7 +50,7 @@ class CProfiler { protected $apiLog = array(); /** - * Contains sql queryes info. + * Contains SQL queries info. * * @var array */ @@ -157,9 +157,7 @@ class CProfiler { $debug_str .= '</div>'; // parameters $debug_str .= '<table><tr><td style="width: 300px" valign="top">Parameters:'; - foreach ($params as $p) { - $debug_str .= '<pre>'.print_r(CHtml::encode($p), true).'</pre>'; - } + $debug_str .= '<pre>'.print_r(CHtml::encode($params), true).'</pre>'; $debug_str .= '</td>'; // result $debug_str .= '<td valign="top">Result:<pre>'.print_r(CHtml::encode($result), true).'</pre></td>'; @@ -193,7 +191,7 @@ class CProfiler { $debug = new CDiv(null, 'textcolorstyles'); $debug->attr('name', 'zbx_debug_info'); $debug->attr('style', 'display: none; overflow: auto; width: 95%; border: 1px #777777 solid; margin: 4px; padding: 4px;'); - $debug->addItem(array(BR(), new CJSscript($debug_str), BR())); + $debug->addItem(array(BR(), new CJsScript($debug_str), BR())); $debug->show(); } |