From d0a674b5dcc1b8844d2afd6a4a16edd76dc2bf80 Mon Sep 17 00:00:00 2001 From: "Abdulmhsen B. A. A" Date: Mon, 13 Jun 2022 19:18:05 +0300 Subject: [PATCH] Fixed display issue related to how many requests are sent. --- src/Commands/State/ExportCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]);