mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fix for crashing server
This commit is contained in:
		| @@ -395,11 +395,13 @@ function send_list(coll, socket, send, list_send, configs, shuffled) | ||||
|  | ||||
|         if(configs) | ||||
|         { | ||||
|             if(conf.length > 0) { | ||||
|                 if(conf[0].adminpass !== "") conf[0].adminpass = true; | ||||
|                 if(conf[0].hasOwnProperty("userpass") && conf[0].userpass != "") conf[0].userpass = true; | ||||
|                 else conf[0].userpass = false; | ||||
|                 io.to(coll).emit("conf", conf); | ||||
|             } | ||||
|         } | ||||
|     }); | ||||
|     if(socket){ | ||||
|         db.collection(coll).find({type:"suggested"}).sort({added: 1}, function(err, sugg){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user