* Adjust assigntomeblock default items.

This commit is contained in:
wangyuting
2024-04-16 13:49:00 +08:00
parent 1f1e819883
commit 66175ccf05
+1 -1
View File
@@ -22,7 +22,7 @@ $moreMenus = array();
foreach($hasViewPriv as $type => $bool)
{
$data = $type == 'story' ? $stories : ${"{$type}s"};
if(empty($data)) unset($hasViewPriv[$type]);
if($type != 'todo' && empty($data)) unset($hasViewPriv[$type]);
}
$count = count($hasViewPriv);