mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 18:03:37 +02:00
Fixed phpunit tests
This commit is contained in:
parent
011bda3600
commit
cad1206175
3 changed files with 20 additions and 12 deletions
|
@ -211,6 +211,11 @@ final class PermissionData implements \JsonSerializable
|
|||
|
||||
//Filter out all empty or null values
|
||||
foreach ($this->data as $permission => $operations) {
|
||||
//Skip non-array values
|
||||
if (!is_array($operations)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$ret[$permission] = array_filter($operations, function ($value) {
|
||||
return $value !== null;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue