mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix PHP 8 incompatibility with conversion false to array (#5774)
This commit is contained in:
parent
9736bdeea5
commit
2ff7f6dce6
@ -9,6 +9,7 @@ HumHub Changelog
|
||||
- Fix #5735: OEmbed migration might fail with more complex Endpoint URLs
|
||||
- Fix #5760: Fix context menu position on the right window side
|
||||
- Fix #5759: Fix tests on enable space module
|
||||
- Fix #5773: Fix PHP 8 incompatibility with conversion false to array
|
||||
|
||||
|
||||
1.11.2 (May 30, 2022)
|
||||
|
@ -222,6 +222,9 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
|
||||
$cacheID = sprintf(static::CACHE_KEY_LIMITED, $model, $id);
|
||||
$comments = $useCaching ? Yii::$app->cache->get($cacheID) : [];
|
||||
if (!is_array($comments)) {
|
||||
$comments = [];
|
||||
}
|
||||
|
||||
if (!isset($comments[$limit]) || !is_array($comments[$limit])) {
|
||||
$objectCondition = ['object_model' => $model, 'object_id' => $id];
|
||||
|
Loading…
x
Reference in New Issue
Block a user