mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
made a if statement more secure
This commit is contained in:
parent
aa5b1b85ae
commit
86e81a1648
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ exports.handleDisconnect = function(client)
|
|||
var sessionPad=session2pad[client.id];
|
||||
|
||||
//if this connection was already etablished with a handshake, send a disconnect message to the others
|
||||
if(sessioninfos[client.id].author)
|
||||
if(sessioninfos[client.id] && sessioninfos[client.id].author)
|
||||
{
|
||||
var author = sessioninfos[client.id].author;
|
||||
|
||||
|
|
Loading…
Reference in a new issue