[FIX] Proper Uptime Robot API detection
This commit is contained in:
parent
b28061142d
commit
6899ac5b6c
@ -38,11 +38,13 @@ if ($price = $tools->getPrice()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update Uptime Robot status in Settings table via API call
|
// Update Uptime Robot status in Settings table via API call
|
||||||
if ($api_keys = $setting->getValue('monitoring_uptimerobot_api_keys') && strstr($api_keys, '<API KEY>|<MONITOR ID>')) {
|
if ($api_keys = $setting->getValue('monitoring_uptimerobot_api_keys')) {
|
||||||
$monitoring->setTools($tools);
|
if (!strstr($api_keys, '<API KEY>|<MONITOR ID>')) {
|
||||||
if (!$monitoring->storeUptimeRobotStatus()) {
|
$monitoring->setTools($tools);
|
||||||
$log->logError($monitoring->getCronError());
|
if (!$monitoring->storeUptimeRobotStatus()) {
|
||||||
$monitoring->endCronjob($cron_name, 'E0017', 1, false);
|
$log->logError($monitoring->getCronError());
|
||||||
|
$monitoring->endCronjob($cron_name, 'E0017', 1, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$log->logDebug('Skipped Uptime Robot API update, missing api keys');
|
$log->logDebug('Skipped Uptime Robot API update, missing api keys');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user