mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
5564c25e7f
commit
60f735ba62
2 changed files with 4 additions and 5 deletions
|
@ -2696,12 +2696,11 @@ function getCursorPos(input) {
|
|||
function isUserOnline(users_id) {
|
||||
users_id = parseInt(users_id);
|
||||
if (typeof users_id_online === 'undefined' || empty(users_id_online)) {
|
||||
console.log('isUserOnline', users_id);
|
||||
return false;
|
||||
}
|
||||
if (typeof users_id_online[users_id] === 'undefined' || empty(users_id_online[users_id])) {
|
||||
return false;
|
||||
}
|
||||
if (empty(users_id_online[users_id].resourceId)) {
|
||||
console.log('isUserOnline array ', users_id);
|
||||
return false;
|
||||
}
|
||||
return users_id_online[users_id];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue