From 44b856295281dbe113bc27a7e4163bb6fe51afcc Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 20 Aug 2009 12:34:15 +0000 Subject: [PATCH] Fixed error with no daemon events defined git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14092 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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= ""; -- 2.30.2