SF Bug #2901854 - E_WARNING: implode(): Invalid arguments passed

This commit is contained in:
Deon George 2010-01-30 15:10:00 +11:00
parent 4598d3ae39
commit 676a675c7c

View File

@ -45,9 +45,14 @@ foreach (array(
'cn=Overlays,cn=Monitor' => 'cn=Overlay %s,%s'
) as $dn => $child) {
$description = implode(' ',$results[$dn]['description']);
if (isset($results[$dn]['description'])) {
$description = implode(' ',$results[$dn]['description']);
$description = preg_replace('/"/','\'',$description);
} else {
$description = '';
}
$description = preg_replace('/"/','\'',$description);
printf('<tr class="list_item"><td class="heading" rowspan=2><acronym title="%s">%s</acronym></td></tr>',$description,$dn);
echo '<tr class="list_item"><td class="value">';
echo '<table class="result"><tr><td>';