Skip to content

Commit

Permalink
Correction date de recherche par défaut
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeDevome committed Jul 20, 2024
1 parent 7687ccd commit 33ec726
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions reservation/controleurs/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
include "./reservation/modeles/report.php";


//Récupération des informations relatives au serveur.
$back = '';
if (isset($_SERVER['HTTP_REFERER']))
$back = htmlspecialchars($_SERVER['HTTP_REFERER']);
//Renseigne les droits de l'utilisateur, si les droits sont insuffisants, l'utilisateur est averti.
if (!verif_access_search(getUserName()))
{
Expand Down Expand Up @@ -94,7 +90,7 @@
}
else
{
$to_time = mktime(0, 0, 0, $month, $day + Settings::get("default_report_days"), $year);
$to_time = mktime(0, 0, 0, $month, $day - Settings::get("default_report_days"), $year);
if (!isset($From_day))
$From_day = $day;
if (!isset($From_month))
Expand Down

0 comments on commit 33ec726

Please sign in to comment.