* [bug#53289,done,0.2h,0h] Delete the module when all blocks is closed.

This commit is contained in:
wangyuting
2024-07-31 18:15:02 +08:00
committed by 胡方舟
parent e4deece4b8
commit 0f9e459e6c
+1
View File
@@ -95,6 +95,7 @@ class blockZen extends block
/* 被永久关闭的区块删除对应选项。 */
/* Delete corresponding options for blocks that have been permanently closed. */
if(strpos(",$closedBlock,", ",$moduleKey|$moduleKey,") !== false) unset($modules[$moduleKey]);
if(isset($this->lang->block->modules[$moduleKey]) && !$this->getAvailableCodes($moduleKey)) unset($modules[$moduleKey]);
}
return $modules;