several cosmetic updates
This commit is contained in:
parent
5a90bb2c8a
commit
8c368524fe
8 changed files with 56 additions and 24 deletions
|
|
@ -113,7 +113,18 @@ class UsersController extends Controller
|
|||
|
||||
if($round_id==-1) {
|
||||
$round_id = Round::getLastLockedRoundId();
|
||||
if ($round_id==-1) {return redirect("/");}
|
||||
if ($round_id==-1) {
|
||||
|
||||
$sql="select DATE_FORMAT(date_sub(min(games.kickoff), interval 1 hour),'%d.%m.%Y %H:%i') as start_date from rounds,games where rounds.season_id=".$currentSeason->id." and games.round_id=rounds.id;";
|
||||
$date = DB::select($sql);
|
||||
|
||||
if (count($date)>0) {
|
||||
$start_date = $date[0]->start_date;
|
||||
return view('users.no_ranking', compact('start_date'));
|
||||
} else {
|
||||
return redirect("/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Auth::guest()) { return redirect("/"); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue