From d2a886fef23d9cd4a9ddcb36ebc2f1f906655b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Thu, 26 Apr 2007 20:50:14 +0000 Subject: [PATCH] first resource was not found when searching bookable resources --- resources/inc/class.bo_resources.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 632990fe2f..266dff585f 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -335,10 +335,7 @@ class bo_resources $data = $this->so->search($criteria,$only_keys,$order_by='',$extra_cols='',$wildcard='%',$empty,$op='OR','',$filter); foreach($data as $num => $resource) { - if($num != 0) - { - $list[$resource['res_id']] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':''); - } + $list[$resource['res_id']] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':''); } return $list; }