bug 1023: convert flag to int before comparison
authorMichael Tänzer <neo@nhng.de>
Tue, 17 Apr 2012 21:35:21 +0000 (23:35 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 17 Apr 2012 21:35:21 +0000 (23:35 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index 4cd1a67..5ed093e 100644 (file)
@@ -581,7 +581,7 @@ function AssureBoxLine($type,$text)
 
 function AssureMethodLine($text,$methods,$remark,$flag)
 {
-       if ($flag === 1)
+       if (intval($flag) === 1)
        {
 ?>
        <tr>