Permalink
Browse files

Bug corrected which could raise a negative index in edit_page.php whe…

…n adding a new timer
  • Loading branch information...
fernadosilva committed May 27, 2016
1 parent 777a66c commit 1ee2d5683f159ad401e717e8c7be6020650e2e46
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/orvfms/edit_page.php
  2. +1 −1 lib/orvfms/proc_scene.php
@@ -56,7 +56,6 @@ function displayEditPage($mac,$editIndex,&$s20Table,$myUrl){
$timerName = $s20Table[$mac]['name'];
$details = $_SESSION['details'];
$nTimers = count($details);
$thisTimer = $details[(int) $editIndex];
?>
<div style="text-align:center">
@@ -78,6 +77,7 @@ function displayEditPage($mac,$editIndex,&$s20Table,$myUrl){
$action = 0;
}
else{
$thisTimer = $details[(int) $editIndex];
secToHour($thisTimer['time'],$h,$m,$s);
$recCode = $thisTimer['recCode'];
$action = $thisTimer['action'];
@@ -12,7 +12,7 @@ function saveScene(&$sceneList,$s20Table){
$oldName = $_SESSION['orgSceneName'];
$macs = array_keys($s20Table);
$tmpScene = array();
displayDebug(120,$_POST);
// displayDebug(120,$_POST);
foreach($macs as $mac){
$isActive = "isActive".$mac;
if(isset($_POST[$isActive])){

0 comments on commit 1ee2d56

Please sign in to comment.