File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
phpmyfaq/src/phpMyFAQ/Faq Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ public function createPermissionArray(): array
151151 ];
152152 } else {
153153 $ permissions += [
154- 'restricted_user ' => Filter::filterArray ($ data ->restricted_users , FILTER_VALIDATE_INT ),
154+ 'restricted_user ' => is_array ($ data ->restricted_users )
155+ ? Filter::filterArray ($ data ->restricted_users , FILTER_VALIDATE_INT )
156+ : [],
155157 ];
156158 }
157159 }
@@ -167,7 +169,9 @@ public function createPermissionArray(): array
167169 ];
168170 } else {
169171 $ permissions += [
170- 'restricted_groups ' => Filter::filterArray ($ data ->restricted_groups , FILTER_VALIDATE_INT )
172+ 'restricted_groups ' => is_array ($ data ->restricted_groups )
173+ ? Filter::filterArray ($ data ->restricted_groups , FILTER_VALIDATE_INT )
174+ : [],
171175 ];
172176 }
173177 }
You can’t perform that action at this time.
0 commit comments