* [bug#57223,done,0.3h] Filter out empty elements from an array.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user