mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fixed null $u_data if user not found (#783)
This commit is contained in:
parent
464966c9fb
commit
f4de0d17cc
1 changed files with 4 additions and 0 deletions
|
@ -991,6 +991,10 @@ function get_userdata($u, $force_name = false, $allow_guest = false)
|
|||
}
|
||||
}
|
||||
|
||||
if (is_null($u_data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($u_data['user_id'] == GUEST_UID) {
|
||||
CACHE('bb_cache')->set('guest_userdata', $u_data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue