Skip to content
Snippets Groups Projects

Set options to an empty array if not an array

1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
+ 4
0
@@ -17,6 +17,10 @@ function required_by_role_update_8001(): void {
continue;
}
if (!is_array($third_party_settings['required_plugin_options'])) {
$third_party_settings['required_plugin_options'] = [];
}
$options = $third_party_settings['required_plugin_options'];
$options = array_filter($options);
$options = array_values($options);
Loading