Initialize accessory list array

This commit is contained in:
Nathan Gray 2012-02-28 20:24:37 +00:00
parent 9feb7e22bf
commit b126ccf8c3

View File

@ -311,6 +311,7 @@ class resources_bo
{
if($res_id < 1){return;}
$data = $this->so->search('','res_id,name','','','','','',$start,array('accessory_of' => $res_id),'',$need_full_no_count=true);
$acc_list = array();
foreach($data as $num => $resource)
{
$acc_list[$resource['res_id']] = $resource['name'];