diff --git a/src/Commands/State/ExportCommand.php b/src/Commands/State/ExportCommand.php index 4e969008..02163dd7 100644 --- a/src/Commands/State/ExportCommand.php +++ b/src/Commands/State/ExportCommand.php @@ -278,9 +278,9 @@ class ExportCommand extends Command $this->export($export, $input); } - $total = $this->queue->getQueue(); + $total = count($this->queue->getQueue()); - if (count($total) >= 1) { + if ($total >= 1) { $this->logger->notice('SYSTEM: Sending [%(total)] change play state requests.', [ 'total' => $total ]);