Mehr Bilder, Arbeit am Backend
This commit is contained in:
@@ -23,7 +23,7 @@ class ChaosEvents extends Model
|
||||
}
|
||||
|
||||
public static function getActiveEvents(){
|
||||
return self::where('to_date_internal', '>=', today())
|
||||
return self::where('active', 1)->where('to_date_internal', '>=', today())
|
||||
->where('from_date_internal', '<=', today())->get();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user