Add files via upload

This commit is contained in:
Markines16
2021-06-02 23:33:04 +02:00
committed by GitHub
parent 0494c611b6
commit 68c117d9dc
2 changed files with 36 additions and 8 deletions

View File

@ -28,7 +28,16 @@
public static function getListSessions($hall,$cinema,$date){
$bd = new SessionDAO('complucine');
if($bd ) {
return $bd->getAllSessions($hall, $cinema, $date);
if($date)
return $bd->getAllSessions($hall, $cinema, $date, null);
else
return $bd->getAllSessions($hall, $cinema, null, null);
}
}
public static function getListSessionsBetween2Dates($hall,$cinema,$start,$end){
$bd = new SessionDAO('complucine');
if($bd ) {
return $bd->getAllSessions($hall, $cinema, $start, $end);
}
}