mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 17:58:59 +00:00
Change the check for null to !empty for userdata in Page class
This commit is contained in:
+4
-2
@@ -45,10 +45,12 @@ class Page extends BasePage
|
||||
$this->smarty->assign('article_menu',$this->smarty->fetch('articlesmenu.tpl'));
|
||||
|
||||
$category = new Category(['Settings' => $content->pdo]);
|
||||
if ($this->userdata != null)
|
||||
if (!empty($this->userdata)) {
|
||||
$parentcatlist = $category->getForMenu($this->userdata["categoryexclusions"]);
|
||||
else
|
||||
}
|
||||
else {
|
||||
$parentcatlist = $category->getForMenu();
|
||||
}
|
||||
|
||||
$this->smarty->assign('parentcatlist',$parentcatlist);
|
||||
$this->smarty->assign('catClass', $category);
|
||||
|
||||
Reference in New Issue
Block a user