bug 569: fixed fatal if clause
authorINOPIAE <inopiae@cacert.org>
Fri, 18 Jan 2013 23:04:20 +0000 (00:04 +0100)
committerINOPIAE <inopiae@cacert.org>
Fri, 18 Jan 2013 23:04:20 +0000 (00:04 +0100)
includes/account.php
www/wot.php

index 897dca0..8f3d96c 100644 (file)
                {
                        echo _("You did not select any email accounts for removal.");
                }
-               if($delcount = 0)
+               if(0 == $delcount)
                {
                        echo _("You failed to select any accounts to be removed, or you attempted to remove the default account. No action was taken.");
                }
index 9e41891..e63f3cb 100644 (file)
@@ -228,7 +228,7 @@ $iecho= "c";
                        exit;
                }
 
-               if($_REQUEST['points'] == "")
+               if($_REQUEST['points'] == "" || !is_numeric($_REQUEST['points']))
                {
                        show_page("VerifyData","",_("You must enter the number of points you wish to allocate to this person."));
                        exit;