* [bug#57223,done,0.3h] Filter out empty elements from an array.

This commit is contained in:
hufangzhou
2024-11-26 16:16:36 +08:00
parent f7308e7a39
commit 1410c24df9
+1 -1
View File
@@ -616,7 +616,7 @@ class groupModel extends model
*/
public function updatePrivByModule()
{
if($this->post->module == false || $this->post->actions == false || $this->post->groups == false) return false;
if($this->post->module == false || array_filter($this->post->actions) == false || array_filter($this->post->groups) == false) return false;
$privs = array();
foreach($this->post->actions as $action)