Skip to content
This repository has been archived by the owner on May 12, 2020. It is now read-only.

Commit

Permalink
Fixing random servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Uniquoooo committed Sep 27, 2015
1 parent 92b0e50 commit 8b4c667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reflex/Database/Models/Match.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ public function setAuthKey()

public function setRandomServer($exclude_servers = null)
{
$servers = Server::all();
$matches = Match::whereBetween('status', [1, 13] )->orderByRaw("RAND()")->lists('server_id');
$servers = Server::orderByRaw("RAND()")->get();
$matches = Match::whereBetween('status', [1, 13])->lists('server_id');
$exclude_servers = collect($exclude_servers);

foreach ($servers as $server) {
Expand Down

0 comments on commit 8b4c667

Please sign in to comment.