Explorar o código

updated last checked to use most recent KNM campaign

Thomas Thümmler hai 8 meses
pai
achega
6765de9364
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)