Browse Source

FIX: some fixes ti service

Giancarlo Voci 7 years ago
parent
commit
88f5dae80a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/OpenMind/FindBox/FindBoxService.php

+ 2 - 1
src/OpenMind/FindBox/FindBoxService.php

@@ -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');
 							return NULL;
 						}
-						$labelsSplitted = array_chunk($clientCommands->id, 9);
+						$idsWithoutNULLs = array_filter($clientCommands->id);
+						$labelsSplitted = array_chunk($idsWithoutNULLs, 9);
 						foreach($labelsSplitted as $labels) {
 							$cmd = clone $clientCommands;
 							$cmd->id = $labels;