data = array(); $restore_status_search = $status_search; $status_search = $opac_scan_request_create_status; $scan_requests = new scan_requests(false); $requests = $scan_requests->get_scan_requests(); if($number = count($requests)){ $this->add_data('scan_request', 'alerte_scan_requests_to_validate', 'list', '&status_search='.$status_search, $number); } $status_search = $restore_status_search; } }