* Fix code.

This commit is contained in:
Yagami
2021-03-19 10:04:45 +08:00
parent 57932ffec3
commit 08c42cf246
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -698,7 +698,7 @@ class commonModel extends model
if($currentModule == 'product' and $currentMethod == 'browse') $active = '';
if($currentModule == 'story') $active = '';
$misc = $openApp != $lang->navGroup->$module ? "data-app='$openApp'" : '';
$misc = isset($lang->navGroup->$module) and $openApp != $lang->navGroup->$module ? "data-app='$openApp'" : '';
$menuItemHtml = "<li class='$class $active' data-id='$menuItem->name'>" . html::a($link, $label, $target, $misc) . $subMenu . "</li>\n";
echo $menuItemHtml;
+1 -1
View File
@@ -225,7 +225,7 @@ class personnel extends control
public function setProgramMenu($programID = 0)
{
$this->loadModel('program');
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID);
commonModel::setAppObjectID('program', $programID);
}
}
-1
View File
@@ -372,7 +372,6 @@ class programModel extends model
* Get program swapper.
*
* @param int $programID
* @param bool $active
* @access private
* @return string
*/