Fixed new seasons' display bug specific to server
This commit is contained in:
parent
1716443bf9
commit
ccc955ef0e
4 changed files with 1277 additions and 3 deletions
|
|
@ -312,9 +312,9 @@ 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(min(games.kickoff), interval 1 hour),'%d.%m.%Y %H:%i') as start_date from rounds,games where rounds.season_id=".$seasonId." and games.round_id=rounds.id order by rounds.id;";
|
||||
$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;";
|
||||
//dd($sql);
|
||||
$entries = DB::select($sql);
|
||||
$entries = DB::select(DB::raw($sql));
|
||||
|
||||
if (count($entries)>0) {
|
||||
$start_date = $entries[0]->start_date;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue