From 78a891846a57695c5bb8a057d08be7d124daf8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Sat, 11 Jun 2005 14:32:08 +0000 Subject: [PATCH] calendar hook: get_calendar_info($res_id) --- resources/inc/class.bo_resources.inc.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 89d2dbdd85..408b77c6c9 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -231,20 +231,7 @@ class bo_resources */ function get_calender_info($res_id) { - if($id < 1) return; - $data[0] = array('name' => '', 'useable' => ''); - foreach($res_id as $num => $id) - { - - } -// $cats = array_flip($this->acl->get_cats(EGW_ACL_READ)); - $this->so->search(array('name' => '*'),false,$data,-1,$order_by='',$offset=false,$num_rows=-1); - - if(is_array($res_id)) - { - } - - return; + return $res_id < 1 ? false : $this->so->search(array('id' => $res_id),'name,useable'); } /**