bug 1137: corrected some checks in wot.inc.php and wot.php
bug 1137: added missing if statement