1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

#4512: faqs_shortcodes::sc_faq_count(): Return blank string instead of 0

Previously incorrect null coalesce returns 0 instead of a blank string

Fixes: #4512
This commit is contained in:
Nick Liu
2021-06-07 21:29:21 -05:00
parent a6e287d680
commit 7cef4264c6
2 changed files with 55 additions and 1 deletions

View File

@@ -283,7 +283,7 @@ class faqs_shortcodes extends e_shortcode
return "<span class='faq-total'>(".($this->counter -1).")</span>";
}
return isset($this->var['f_count']) ? $this->var['f_count'] : 0;
return isset($this->var['f_count']) ? $this->var['f_count'] : '';
}
function sc_faq_cat_diz()