bug 1023: Fix assignment vs. comparison
authorMichael Tänzer <neo@nhng.de>
Tue, 17 Apr 2012 21:14:12 +0000 (23:14 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 17 Apr 2012 21:14:12 +0000 (23:14 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index 19f56a4..4cd1a67 100644 (file)
@@ -581,7 +581,7 @@ function AssureBoxLine($type,$text)
 
 function AssureMethodLine($text,$methods,$remark,$flag)
 {
-       if ($flag = 1)
+       if ($flag === 1)
        {
 ?>
        <tr>
@@ -589,11 +589,11 @@ function AssureMethodLine($text,$methods,$remark,$flag)
                <td class="DataTD">
                        <select name="method">
 <?
-                       foreach($methods as $val) { ?>
+                       foreach($methods as $val) { ?>
                                <option value="<?=$val?>"<? if(array_key_exists('method',$_POST) && $val == $_POST['method']) echo " selected"; ?>><?=$val?></option>
 
 <? } ?>
-                       </select>
+                       </select>
                        </br><?=$remark?>
                </td>
        </tr>