diff --git a/htdocs/monitor.php b/htdocs/monitor.php index 950f4da..a3afa4f 100644 --- a/htdocs/monitor.php +++ b/htdocs/monitor.php @@ -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('%s',$description,$dn); echo ''; echo '
';