Skip to content

Commit

Permalink
Add array check to migration
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 1, 2024
1 parent d37fa12 commit c6460c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/m240905_120000_convert_enabled_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function safeUp(): bool

foreach ($settingNames as $settingName) {
$settings = $projectConfig->get('plugins.blitz.settings.' . $settingName);
if ($settings !== null) {
if (is_array($settings)) {
$settings = ProjectConfigHelper::unpackAssociativeArray($settings);
foreach ($settings as &$setting) {
$setting['enabled'] = true;
Expand Down

0 comments on commit c6460c2

Please sign in to comment.