mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#13288 Fixed refresh
This commit is contained in:
parent
aa307b4229
commit
18974ff4a9
@ -1026,11 +1026,18 @@ if (is_ajax() === true) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = networkmap_refresh_holding_area($networkmap_id, $x, $y);
|
$filter = db_get_value('filter', 'tmap', 'id', $networkmap_id);
|
||||||
|
$filter = json_decode($filter, true);
|
||||||
|
|
||||||
if (!empty($data)) {
|
if (isset($filter['empty_map']) === false
|
||||||
$return['correct'] = true;
|
|| (isset($filter['empty_map']) === true && $filter['empty_map'] !== 1)
|
||||||
$return['holding_area'] = $data;
|
) {
|
||||||
|
$data = networkmap_refresh_holding_area($networkmap_id, $x, $y);
|
||||||
|
|
||||||
|
if (!empty($data)) {
|
||||||
|
$return['correct'] = true;
|
||||||
|
$return['holding_area'] = $data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user