mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix deprecated null value for file_exists()
on PHP 8.1 (#5838)
* Fix deprecated null value for `file_exists()` on PHP 8.1 * Update CHANGELOG.md (#5838)
This commit is contained in:
parent
e45513c8dd
commit
4dd841d1a7
@ -8,6 +8,7 @@ HumHub Changelog
|
||||
- Fix #5832: Exception in file open dialog when last update user no longer exists
|
||||
- Fix #5814: Fix numerated lists in mail summary content
|
||||
- Fix #5830: Fix cron job of search index rebuilding
|
||||
- Fix #5838: Fix deprecated null value for `file_exists()` on PHP 8.1
|
||||
|
||||
1.12.0 (July 27, 2022)
|
||||
----------------------
|
||||
|
@ -58,7 +58,7 @@ class DefaultViewPathRenderer extends \humhub\components\rendering\ViewPathRende
|
||||
{
|
||||
$viewFile = parent::getViewFile($viewable);
|
||||
|
||||
if (!file_exists($viewFile) && $this->defaultViewPath) {
|
||||
if (($viewFile === null || !file_exists($viewFile)) && $this->defaultViewPath) {
|
||||
$viewFile = Yii::getAlias($this->defaultViewPath) . '/' . $this->suffix($viewable->getViewName());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user