Skip to content

Commit

Permalink
Added default template variables to prevent crash in mod_tag_listbyca…
Browse files Browse the repository at this point in the history
…tegory
  • Loading branch information
hschottm committed Nov 28, 2022
1 parent d925e1a commit a72cec2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/ModuleTagListByCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ public function generate()
*/
protected function compile()
{
$this->loadLanguageFile('tl_module');
$this->Template->news = array();
$this->Template->events = array();
$this->Template->other_pages = array();
$this->Template->pages = array();
if (strlen(\TagHelper::decode(\Input::get('tag'))) && count($this->sourcetables) > 0)
{
$tagids = array();
Expand Down

0 comments on commit a72cec2

Please sign in to comment.