bug 1023: Mistyped variable name
authorMichael Tänzer <neo@nhng.de>
Tue, 22 May 2012 22:54:38 +0000 (00:54 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 22 May 2012 22:54:38 +0000 (00:54 +0200)
Leads to the method selection always shown

Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index 663eff2..edc442a 100644 (file)
@@ -581,7 +581,7 @@ function AssureBoxLine($type,$text,$checked)
 
 function AssureMethodLine($text,$methods,$remark)
 {
-       if (count($method) != 1)
+       if (count($methods) != 1)
        {
 ?>
        <tr>
@@ -600,7 +600,7 @@ function AssureMethodLine($text,$methods,$remark)
 <?
        } else {
 ?>
-       <input type="hidden" name="<?=$val?>" value="<?=$method[0]?>">
+       <input type="hidden" name="<?=$val?>" value="<?=$methods[0]?>">
 <?
        }
 }