Skip to content

Commit

Permalink
Merge pull request preinheimer#91 from aik099/86-warnings-during-requ…
Browse files Browse the repository at this point in the history
…est-display-on-single-run-page

Handle multi-dimensional array during request data printing
  • Loading branch information
preinheimer committed Jun 8, 2015
2 parents a996ad2 + 2cfec78 commit 560bca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions xhprof_lib/templates/diff_run_header_block.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ print('<div id="view-diff-tables">');
}
if (is_array($value))
{
$value = implode(", ", $value);
$value = nl2br(str_replace(' ', '&nbsp;', print_r($value, true)));
}
echo "<td>" . $key . "</td><td class=\"".$class."\">" . chunk_split($value) . "</td>";
echo "</tr>";
Expand Down Expand Up @@ -205,7 +205,7 @@ print('<div id="view-diff-tables">');
}
if(is_array($value))
{
$value = implode(", ", $value);
$value = nl2br(str_replace(' ', '&nbsp;', print_r($value, true)));
}
echo "<td>" . $key . "</td><td class=\"".$class."\">" . chunk_split($value) . "</td>";
echo "</tr>";
Expand Down
6 changes: 3 additions & 3 deletions xhprof_lib/templates/single_run_header_block.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
foreach($cookieArr as $key=>$value){
if (is_array($value))
{
$value = implode(", ", $value);
$value = nl2br(str_replace(' ', '&nbsp;', print_r($value, true)));
}
echo "<tr>\n";
echo "\t<td>" . $key . "</td><td>" . chunk_split($value) . "</td>\n";
Expand All @@ -104,7 +104,7 @@
{
if (is_array($value))
{
$value = implode(", ", $value);
$value = nl2br(str_replace(' ', '&nbsp;', print_r($value, true)));
}
echo "<tr>";
echo "<td>" . $key . "</td><td>" . $value . "</td>";
Expand All @@ -129,7 +129,7 @@
foreach($postArr as $key=>$value){
if (is_array($value))
{
$value = implode(", ", $value);
$value = nl2br(str_replace(' ', '&nbsp;', print_r($value, true)));
}
echo "<tr>";
echo "<td>" . $key . "</td><td>" . $value . "</td>";
Expand Down

0 comments on commit 560bca7

Please sign in to comment.