diff options
author | Michael Tänzer <neo@nhng.de> | 2012-04-17 23:14:12 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2012-04-17 23:14:12 +0200 |
commit | b13ba4765ca619e1035700eb6e5f87268fc5977a (patch) | |
tree | a0e80f92aab8384c8472cdbb89824b479e698efe | |
parent | 442a088c4c547a7324e82c518f0d8100936c89e0 (diff) | |
download | cacert-devel-b13ba4765ca619e1035700eb6e5f87268fc5977a.tar.gz cacert-devel-b13ba4765ca619e1035700eb6e5f87268fc5977a.tar.xz cacert-devel-b13ba4765ca619e1035700eb6e5f87268fc5977a.zip |
bug 1023: Fix assignment vs. comparison
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r-- | includes/wot.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php index 19f56a4..4cd1a67 100644 --- a/includes/wot.inc.php +++ b/includes/wot.inc.php @@ -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> |