fix regression reported by @asig2016 after big warning fix

This commit is contained in:
Ralf Becker 2021-10-23 09:55:01 +02:00
parent ab216c39ca
commit 09cb38541b

View File

@ -232,7 +232,7 @@ class Asyncservice
{ {
if ((string)$t == '*') $t = '*/1'; if ((string)$t == '*') $t = '*/1';
list($one,$inc) = $arr = explode('/',$t)+[null,null]; list($one,$inc) = ($arr = explode('/', $t))+[null,null];
if (!(is_numeric($one) && count($arr) == 1 || if (!(is_numeric($one) && count($arr) == 1 ||
count($arr) == 2 && is_numeric($inc))) count($arr) == 2 && is_numeric($inc)))
@ -247,7 +247,7 @@ class Asyncservice
} }
else else
{ {
list($min,$max) = $arr = explode('-',$one)+[null,null]; list($min,$max) = ($arr = explode('-', $one))+[null,null];
if (empty($one) || $one == '*') if (empty($one) || $one == '*')
{ {
$min = $min_unit[$u]; $min = $min_unit[$u];