From e2cfbf4c038f28874a206df5805f04f69a40647b Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Thu, 30 Nov 2023 18:11:14 +0100 Subject: [PATCH] fix(legacy): declare previously undeclared variable (#2793) --- legacy/application/views/scripts/playlist/update.phtml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/legacy/application/views/scripts/playlist/update.phtml b/legacy/application/views/scripts/playlist/update.phtml index 2d28c0acd..7439ebd3e 100644 --- a/legacy/application/views/scripts/playlist/update.phtml +++ b/legacy/application/views/scripts/playlist/update.phtml @@ -6,8 +6,12 @@ if ($isSmartBlock && $this->showPoolCount) { ?>
poolCount; - echo ngettext(" track matches your search criteria.", " tracks match your search criteria.", $this->poolCount); + if($this->poolCount) { + echo $this->poolCount; + echo ngettext(" track matches your search criteria.", " tracks match your search criteria.", $this->poolCount); + } else { + echo "No track match the search criteria"; + } ?> poolCount > 0) { ?> @@ -26,6 +30,7 @@ if (count($items) && ($isSmartBlock || $isPlaylist)) : ?> ?>