Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(UI): correct default argument type of the search field (#7828)
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 authored Sep 2, 2019
1 parent e0445ce commit bc69903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/include/monitoring/recurrentDowntime/listDowntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

//initializing filters values
$search = filter_var(
$_POST["searchDT"] ?? $_GET["searchDT"] ?? null,
$_POST["searchDT"] ?? $_GET["searchDT"] ?? '',
FILTER_SANITIZE_STRING
);

Expand All @@ -53,7 +53,7 @@
$centreon->historySearch[$url]["search"] = $search;
} else {
//restoring saved values
$search = $centreon->historySearch[$url]['search'] ?? null;
$search = $centreon->historySearch[$url]['search'] ?? '';
}

$downtime->setSearch($search);
Expand Down

0 comments on commit bc69903

Please sign in to comment.