Create author2sessions.sessionIDs if it doesn't exist yet.

This commit is contained in:
Marcel Klehr 2012-08-10 16:20:07 +02:00
parent d6a0cfc398
commit d9d28369b2
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ exports.createSession = function(groupID, authorID, validUntil, callback)
if(ERR(err, callback)) return;
//the entry doesn't exist so far, let's create it
if(author2sessions == null)
if(author2sessions == null || author2sessions.sessionIDs == null)
{
author2sessions = {sessionIDs : {}};
}