Skip to content

Commit

Permalink
fix(legacy): declare previously undeclared variable (#2793)
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher committed Nov 30, 2023
1 parent 580c935 commit e2cfbf4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions legacy/application/views/scripts/playlist/update.phtml
Expand Up @@ -6,8 +6,12 @@ if ($isSmartBlock && $this->showPoolCount) { ?>
<div class='sp_text_font sp_text_font_bold'>
<span id='sp_pool_count' class='sp_text_font sp_text_font_bold'>
<?php
echo $this->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";
}
?>
</span>
<?php if ($this->poolCount > 0) { ?>
Expand All @@ -26,6 +30,7 @@ if (count($items) && ($isSmartBlock || $isPlaylist)) : ?>
?>
<?php foreach ($items as $item) :
$staticBlock = null;
$fileUrl = null;
$nextFileUrl = null;
if ($item['type'] == 2) {
$bl = new Application_Model_Block($item['item_id']);
Expand Down

0 comments on commit e2cfbf4

Please sign in to comment.