Browse Source

updated last checked to use most recent KNM campaign

Thomas Thümmler 7 months ago
parent
commit
6765de9364
1 changed files with 2 additions and 1 deletions
  1. 2 1
      public/index.php

+ 2 - 1
public/index.php

@@ -110,7 +110,8 @@
                     }
                     if($rowCount == 0 && $i == 3){
                       $lastChecked = "$lastChecked $value (UTC)";
-                      echo "<script>localStorage.setItem('lastChecked', '$lastChecked')</script>";
+                      if ($index == 0) echo "<script>localStorage.setItem('lastChecked', '$lastChecked')</script>";
+                      // store most recent entry (row=0) of latest campaign (index=0) for display in checklist.php
                     }
 
                     if ($tableName.length < 5 || $i != 11) // skip column 11 = LARA, which is true since KNM10 (length 5, KNM9 and before length 4)