summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1af0722)
raw | patch | inline | side by side (parent: 1af0722)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Aug 2009 12:34:15 +0000 (12:34 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Aug 2009 12:34:15 +0000 (12:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14092 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index cf2366ecec565f3d069b601d2367d514ac9b7e29..76c1ddef8688b2a503f9ac2f8990ba2ec162ac24 100644 (file)
// 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.= "<li$separator><a href='#' onClick='document.getElementById(\"actionmenu\").value= \"$name\";mainform.submit();'><img src='".$event['MenuImage']."' alt='' border='0' class='center'> ".$event['s_Menu_Name']."</a></li>";
$separator= "";