Skip to content

Commit

Permalink
Fixed an issue where AssetMate could cause a type related PHP excepti…
Browse files Browse the repository at this point in the history
…on when uploading files. Bump to 2.3.1
  • Loading branch information
mmikkel committed Jun 9, 2023
1 parent 4831aee commit 4ffe1dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# AssetMate Changelog

## 2.3.1 - 2023-06-10
### Fixed
- Fixed an issue where AssetMate could cause a type related PHP exception when uploading files

## 2.3.0 - 2023-06-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/assetmate",
"description": "Protect your assets, mate!",
"type": "craft-plugin",
"version": "2.3.0",
"version": "2.3.1",
"keywords": [
"craft",
"cms",
Expand Down
4 changes: 2 additions & 2 deletions src/services/Convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function getShouldConvert(string $volume): bool
$config = AssetMate::$plugin->getSettings();
$volumes = $config->volumes;

$defaultConfig = new VolumeSettings($volumes['*'] ?? null);
$volumeConfig = new VolumeSettings($volumes[$volume] ?? null);
$defaultConfig = new VolumeSettings($volumes['*'] ?? []);
$volumeConfig = new VolumeSettings($volumes[$volume] ?? []);

return $volumeConfig->convertUnmanipulable ?? $defaultConfig->convertUnmanipulable ?? false;
}
Expand Down

0 comments on commit 4ffe1dd

Please sign in to comment.