mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix search of obsolete cached objects (#6041)
* Fix search of obsolete cached objects * Update CHANGELOG.md
This commit is contained in:
parent
c49309322f
commit
0d8b581adc
@ -14,6 +14,7 @@ HumHub Changelog
|
||||
- Fix #6027: Fix private user visibility by guest
|
||||
- Fix #6030: Use all searchable profile fields in UserPicker searching
|
||||
- Fix #6026: Fix visibility members counter for guests
|
||||
- Fix #6041: Fix search of obsolete cached objects
|
||||
|
||||
1.13.0 (December 21, 2022)
|
||||
--------------------------
|
||||
|
@ -52,6 +52,10 @@ class SearchResultSet
|
||||
foreach ($this->results as $result) {
|
||||
/** @var $modelClass ActiveRecord */
|
||||
$modelClass = $result->model;
|
||||
if (!class_exists($modelClass)) {
|
||||
Yii::info('Could not find class ' . $modelClass, 'search');
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
$instance = $modelClass::findOne(['id' => $result->pk]);
|
||||
} catch (\Exception $ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user