diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 1598f600ec..8657f7b3d0 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -85,9 +85,11 @@ class resources_hooks function calender_resources($args) { - return $args['type'] =='r' ? array( 'select_template' => 'resources.resource_selectbox', - 'info' => 'resources.bo_resources.get_calender_info', - ) : false; + return array( + 'select_template' => 'resources.resource_selectbox', + 'info' => 'resources.bo_resources.get_calender_info', + 'type' => 'r', + ); } }