Browse Source

fix stuff

Jan Behrens 4 years ago
parent
commit
de5e78548c
2 changed files with 3 additions and 1 deletions
  1. 1 1
      patchpanel/index.php
  2. 2 0
      poll_HV_data.php

+ 1 - 1
patchpanel/index.php

@@ -169,7 +169,7 @@
 				<?php
 					foreach (glob("data/*.conf") as $filename)
 					{
-						$buffer = substr($filename, 0, strlen($filename) - 5);
+						$buffer = substr($filename, 5, strlen($filename) - 10);
 						if ($_POST["configurationload"] == $buffer) echo '<option selected>'; else echo '<option>';
 						echo $buffer . '</option>';
 					}

+ 2 - 0
poll_HV_data.php

@@ -65,6 +65,8 @@ do {
       //convert ADEI response into array with all values
       $oldTS1 = 0; 
       $oldTS2 = 0; 
+      $readings1 = array();
+      $readings2 = array();
       foreach ($adeiArray as $key => $element)
 	{
 	  $adeiLine = explode(",",$element);