From: cajus Date: Thu, 20 Aug 2009 12:34:15 +0000 (+0000) Subject: Fixed error with no daemon events defined X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44b856295281dbe113bc27a7e4163bb6fe51afcc;p=gosa.git Fixed error with no daemon events defined git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14092 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index cf2366ece..76c1ddef8 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -1273,7 +1273,7 @@ class listing { // If there is a daemon registered, draw the menu entries if(class_available("DaemonEvent")){ $events= DaemonEvent::get_event_types_by_category($this->categories); - if(count($events['BY_CLASS'])){ + if(isset($events['BY_CLASS']) && count($events['BY_CLASS'])){ foreach($events['BY_CLASS'] as $name => $event){ $result.= " ".$event['s_Menu_Name'].""; $separator= "";