Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix caching error on Profile loading #7978

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -5370,7 +5370,7 @@ protected static function loadUserData(array $users, int $type = self::LOAD_BY_I
}

// Does the cached data have everything we need?
if (self::$dataset_levels[$data['dataset']] >= self::$dataset_levels[$dataset]) {
if (is_array($data) && !empty(self::$dataset_levels[$data['dataset']]) && !empty(self::$dataset_levels[$dataset]) && self::$dataset_levels[$data['dataset']] >= self::$dataset_levels[$dataset]) {
self::$profiles[$id] = $data;
$loaded_ids[] = $id;
unset($users[$key]);
Expand Down