added id to returned array of info function

This commit is contained in:
Ralf Becker 2005-06-12 08:01:19 +00:00
parent 1812b42810
commit 91d42882b7

View File

@ -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 "<p>bo_resources::get_calendar_info(".print_r($res_id,true)."</p>\n";
return !is_array($res_id) && $res_id < 1 ? false : $this->so->search(array('id' => $res_id),'id,name,useable');
}
/**