mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added Warning for "active station_location isn't linked" as well
This commit is contained in:
@@ -25,6 +25,13 @@ class Dashboard extends CI_Controller
|
||||
$this->load->model('logbooks_model');
|
||||
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||
|
||||
|
||||
if (($logbooks_locations_array[0]>-1) && (!(in_array($this->stations->find_active(),$logbooks_locations_array)))) {
|
||||
$data['active_not_linked']=true;
|
||||
} else {
|
||||
$data['active_not_linked']=false;
|
||||
}
|
||||
|
||||
if ($logbooks_locations_array[0] == -1) {
|
||||
$data['linkedCount']=0;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user