...
This commit is contained in:
parent
765cf0b47a
commit
09868b366f
5 changed files with 475 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ class UsersController extends Controller
|
|||
if($max_round_id==-1) {
|
||||
$max_round_id = Round::getLastLockedRoundId();
|
||||
if ($max_round_id==-1) {
|
||||
$sql="SELECT DATE_FORMAT(date_sub(games.kickoff, INTERVAL 1 MINUTE),'%d.%m.%Y %H:%i') as start_date from rounds,games where rounds.season_id=11 and games.round_id=rounds.id order by games.id limit 1;";
|
||||
$sql="SELECT DATE_FORMAT(date_sub(games.kickoff, INTERVAL 1 MINUTE),'%d.%m.%Y %H:%i') as start_date from rounds,games where rounds.season_id=".$seasonId." and games.round_id=rounds.id order by games.id limit 1;";
|
||||
//dd($sql);
|
||||
$entries = DB::select(DB::raw($sql));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue