From 3ac167808fde39bc2381271771f450b8be4977db Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 16 Jul 2022 09:42:52 -0400 Subject: [PATCH] No detections for today --- scripts/overview.php | 3 +++ scripts/todays_detections.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/scripts/overview.php b/scripts/overview.php index cd59d9c..25d77b7 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -136,6 +136,9 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse No Detections For Today."; + } die(); } diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 60a0fea..6deadf5 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -199,6 +199,10 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) { No Detections For Today."; + } + // don't show the button if there's no more detections to be displayed, we're at the end of the list if($iterations >= 40 && isset($_GET['display_limit']) && is_numeric($_GET['display_limit'])) { ?>