mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-health: update initialization of empty array
Having the parenthesis here is important for valid syntax!
This commit is contained in:
@@ -35,10 +35,10 @@
|
||||
}
|
||||
|
||||
:if ([ :typeof $CheckHealthLast ] != "array") do={
|
||||
:set CheckHealthLast [ :toarray "" ];
|
||||
:set CheckHealthLast ({});
|
||||
}
|
||||
:if ([ :typeof $CheckHealthTemperatureNotified ] != "array") do={
|
||||
:set CheckHealthTemperatureNotified [ :toarray "" ];
|
||||
:set CheckHealthTemperatureNotified ({});
|
||||
}
|
||||
|
||||
$ScriptLock $0;
|
||||
|
||||
Reference in New Issue
Block a user