* Fix bug #16385 and fix an error.

This commit is contained in:
hufangzhou
2021-11-18 21:41:48 +08:00
parent 40b0b05a3e
commit 4a07c2324f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
<?php foreach($lang->mainNav as $menuKey => $menu):?>
<?php if(!is_string($menu)) continue;?>
<?php list($moduleName, $module) = explode('|', $menu);?>
<?php if($module == 'my') continue;?>
<?php if($menuKey == 'my') continue;?>
<?php $moduleName = strip_tags($moduleName);?>
<div class='group-item'>
<div class='checkbox-primary'>
+1 -1
View File
@@ -328,7 +328,7 @@ class stakeholderModel extends model
}
}
if(empty($parents)) return false;
if(empty($parents)) return array();
/* Get all parent stakeholders.*/
$parentStakeholders = $this->dao->select('objectID, user')->from(TABLE_STAKEHOLDER)->where('objectID')->in(array_keys($parents))->andWhere('deleted')->eq('0')->fetchAll();