mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Debug
This commit is contained in:
parent
da06253fe0
commit
4b34cf4dac
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue