|
@@ -326,7 +326,8 @@ class FindBoxService
|
|
|
$this->ServiceLogger->write("No labels passed to BLINK_ON/OFF command code '{$clientCommands->operation}'", 'd/m/Y H:i:s');
|
|
$this->ServiceLogger->write("No labels passed to BLINK_ON/OFF command code '{$clientCommands->operation}'", 'd/m/Y H:i:s');
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|
|
|
- $labelsSplitted = array_chunk($clientCommands->id, 9);
|
|
|
|
|
|
|
+ $idsWithoutNULLs = array_filter($clientCommands->id);
|
|
|
|
|
+ $labelsSplitted = array_chunk($idsWithoutNULLs, 9);
|
|
|
foreach($labelsSplitted as $labels) {
|
|
foreach($labelsSplitted as $labels) {
|
|
|
$cmd = clone $clientCommands;
|
|
$cmd = clone $clientCommands;
|
|
|
$cmd->id = $labels;
|
|
$cmd->id = $labels;
|