Skip to content

Commit

Permalink
5.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Oct 1, 2024
1 parent 960071c commit d37fa12
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes for Blitz

## 5.8.1 - 2024-10-01

### Fixed

- Fixed an error that could occur when updating to 5.8.0.

## 5.8.0 - 2024-10-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-blitz",
"description": "Intelligent static page caching for creating lightning-fast sites.",
"version": "5.8.0",
"version": "5.8.1",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/blitz",
"license": "proprietary",
Expand Down
6 changes: 4 additions & 2 deletions src/models/SettingsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,10 @@ public function setAttributes($values, $safeOnly = true): void
'excludedQueryStringParams',
];
foreach ($settingNames as $settingName) {
foreach ($this->{$settingName} as &$setting) {
$setting['enabled'] = $setting['enabled'] ?? true;
if (is_array($this->{$settingName})) {
foreach ($this->{$settingName} as &$setting) {
$setting['enabled'] = $setting['enabled'] ?? true;
}
}
}
}
Expand Down

0 comments on commit d37fa12

Please sign in to comment.