1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
DanieL 2023-02-01 15:56:30 -03:00
parent da06253fe0
commit 4b34cf4dac

View file

@ -112,6 +112,9 @@ class Message implements MessageComponentInterface {
public function onClose(ConnectionInterface $conn) { public function onClose(ConnectionInterface $conn) {
global $onMessageSentTo, $SocketGetTotals; global $onMessageSentTo, $SocketGetTotals;
if(empty($conn)){
return false;
}
$client = dbGetRowFromResourcesId($conn->resourceId); $client = dbGetRowFromResourcesId($conn->resourceId);
if(empty($client)){ if(empty($client)){
$client = array('users_id'=>0); $client = array('users_id'=>0);