update game jame
This commit is contained in:
@@ -11,7 +11,20 @@ use Backend\Models\GameJam;
|
||||
|
||||
if (isset($_GET['gameJamId'])) {
|
||||
$dbValue = GameJam::find($_GET['gameJamId']);
|
||||
} else {
|
||||
}elseif (isset($_GET['hasEnded'])){
|
||||
$hasEnded = $_GET['hasEnded'];
|
||||
if($hasEnded == 0 OR $hasEnded == 1){
|
||||
if ($hasEnded){
|
||||
$dbValue = GameJam::where("is_finished",1)->get();
|
||||
}else{
|
||||
$dbValue = GameJam::where("is_finished",0)->get();
|
||||
}
|
||||
}
|
||||
else{
|
||||
$dbValue = GameJam::all();
|
||||
}
|
||||
}
|
||||
else {
|
||||
$dbValue = GameJam::all();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user