Эх сурвалжийг харах

Fehler behoben, der die zuweisung von Shop Servern verhindert hat

Kolja Strohm 6 жил өмнө
parent
commit
e4c24b5df4

+ 1 - 1
MainServer/Datenbank.cpp

@@ -330,7 +330,7 @@ int MSDatenbank::suchShopServer( unsigned int client )
     }
     res.destroy();
     lock();
-    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a, server_client b WHERE a.id = b.server_id AND a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
+    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a LEFT JOIN server_client b ON a.id = b.server_id WHERE a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
     {
         unlock();
         return 0;