mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(legacy) check if gateways.gateway_item exists
This commit is contained in:
parent
edea6a3434
commit
195f45ca47
@ -1076,9 +1076,11 @@ function gateway_is_gwgroup_member($name) {
|
||||
function is_apinger_enabled() {
|
||||
global $config;
|
||||
$gwcount=0;
|
||||
foreach($config['gateways']['gateway_item'] as $gwkey => $gateway) {
|
||||
if (!isset($gateway['monitor_disable']) || $gateway['monitor_disable'] == "0") {
|
||||
$gwcount += 1;
|
||||
if (isset($config['gateways']['gateway_item'])) {
|
||||
foreach($config['gateways']['gateway_item'] as $gwkey => $gateway) {
|
||||
if (!isset($gateway['monitor_disable']) || $gateway['monitor_disable'] == "0") {
|
||||
$gwcount += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user