Project

General

Profile

Bug #18018 » 0007202_debug_empty_array.patch

Administrator Admin, 2008-01-18 13:00

View differences:

class.t3lib_div.php (working copy)
if (is_array($array_in)) {
$result='<table border="1" cellpadding="1" cellspacing="0" bgcolor="white">';
if (count($array_in) == 0) {
$result.= '<tr><td><font face="Verdana,Arial" size="1"><b>EMPTY!</b></font></td></tr>';
$result.= '<tr><td><font face="Verdana,Arial" size="1"><b>EMPTY!</b></font></td></tr></table>';
} else {
foreach ($array_in as $key => $val) {
$result.= '<tr><td valign="top"><font face="Verdana,Arial" size="1">'.htmlspecialchars((string)$key).'</font></td><td>';
(1-1/2)