Skip to content

Commit

Permalink
Fixed #11751
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Aug 8, 2022
1 parent df72e8d commit b523fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Fixed a bug where not all project config changes would be applied if a field or site was deleted. ([#9567](https://github.com/craftcms/cms/issues/9567))
- Fixed an error that could occur when saving an element to a disabled site. ([#10499](https://github.com/craftcms/cms/issues/10499), [#11741](https://github.com/craftcms/cms/issues/11741))
- Fixed a bug where `$` characters in database connection passwords weren’t being escaped property when backing up/restoring the database. ([#11750](https://github.com/craftcms/cms/issues/11750))
- Fixed a PHP error that could occur if `craft\services\Assets::getUserTemporaryUploadFolder()` was called when there was no logged-in user account. ([#11751](https://github.com/craftcms/cms/issues/11751))

## 3.7.50 - 2022-07-26

Expand Down
2 changes: 1 addition & 1 deletion src/services/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ public function getUserTemporaryUploadFolder(User $user = null)
$user = Craft::$app->getUser()->getIdentity();
}

if (isset($this->_userTempFolders[$user->id])) {
if ($user && isset($this->_userTempFolders[$user->id])) {
return $this->_userTempFolders[$user->id];
}

Expand Down

0 comments on commit b523fb8

Please sign in to comment.