shorted show_archive to just archived

This commit is contained in:
johnnyq
2023-09-26 15:28:26 -04:00
parent 35055489e5
commit 7848043a40
2 changed files with 9 additions and 9 deletions

View File

@@ -99,15 +99,15 @@ if ($_GET['canned_date'] == "custom" && !empty($_GET['dtf'])) {
$dtt = date('Y-m-d');
}
// Archived
$show_archived = 0;
if (isset($_GET['show_archived'])) {
$show_archived = intval($_GET['show_archived']);
$archived = 0;
if (isset($_GET['archived'])) {
$archived = intval($_GET['archived']);
}
if($show_archived == 1){
if($archived == 1){
$archive_query = "archived_at IS NOT NULL";
} else {
$archive_query = "archived_at IS NULL";