Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTechSneeze <dave@techsneeze.com>2022-07-21 20:58:54 +0300
committerGitHub <noreply@github.com>2022-07-21 20:58:54 +0300
commit3f175c55c870758ff1bff4abbc83c30bd049a0de (patch)
tree24e92cfee1840ff6f48a567c55bcbb6b5e4b2cd9
parentf2ea2d1462ede778de172f887b9441cff59bab4c (diff)
parent34694e7b47db193744889010c5bba8b142e9b52f (diff)
Merge pull request #78 from DanielB1990/patch-1
Update dmarcts-report-viewer.php
-rw-r--r--dmarcts-report-viewer.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/dmarcts-report-viewer.php b/dmarcts-report-viewer.php
index 180fee9..e6e32e4 100644
--- a/dmarcts-report-viewer.php
+++ b/dmarcts-report-viewer.php
@@ -309,6 +309,19 @@ while($row = $query->fetch_assoc()) {
$periods[] = sprintf( "%'.04d-%'.02d", $row['year'], $row['month'] );
}
+// When arrays of data do not exist, for example in a new & empty set-up, create empty arrays
+// --------------------------------------------------------------------------
+if(!isset($domains)){
+ $domains = array();
+}
+if(!isset($orgs)){
+ $orgs = array();
+}
+if(!isset($periods)){
+ $periods = array();
+}
+
+
// Generate Page with report list and report data (if a report is selected).
// --------------------------------------------------------------------------
echo html(