summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-19 00:04:20 +0100
committerINOPIAE <inopiae@cacert.org>2013-01-19 00:04:20 +0100
commit64e2d63b914fdde2984cf7c133b2e6fa280d5148 (patch)
tree9df12fae0fb8ea1c0b14fe4599c89e05e8a5b887
parentc6118a141928c4933c5409996929f6460b499a56 (diff)
downloadcacert-devel-64e2d63b914fdde2984cf7c133b2e6fa280d5148.tar.gz
cacert-devel-64e2d63b914fdde2984cf7c133b2e6fa280d5148.tar.xz
cacert-devel-64e2d63b914fdde2984cf7c133b2e6fa280d5148.zip
bug 569: fixed fatal if clause
-rw-r--r--includes/account.php2
-rw-r--r--www/wot.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/account.php b/includes/account.php
index 897dca0..8f3d96c 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -182,7 +182,7 @@
{
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.");
}
diff --git a/www/wot.php b/www/wot.php
index 9e41891..e63f3cb 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -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;