From 91d42882b72aef97048e872f72e564bc5cd7d6d4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 12 Jun 2005 08:01:19 +0000 Subject: [PATCH] added id to returned array of info function --- resources/inc/class.bo_resources.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 5dc37a625e..408dc9b98b 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -230,9 +230,10 @@ class bo_resources * @param int/array $res_id single id or array $num => $res_id * @return array */ - function get_calender_info($res_id) + function get_calendar_info($res_id) { - return $res_id < 1 ? false : $this->so->search(array('id' => $res_id),'name,useable'); + //echo "

bo_resources::get_calendar_info(".print_r($res_id,true)."

\n"; + return !is_array($res_id) && $res_id < 1 ? false : $this->so->search(array('id' => $res_id),'id,name,useable'); } /**