diff options
author | Felix Dörre <felix@dogcraft.de> | 2015-04-30 00:49:21 +0200 |
---|---|---|
committer | Felix Dörre <felix@dogcraft.de> | 2015-04-30 00:54:46 +0200 |
commit | d051818b7731d025b4f01686e9266a5294bd04c7 (patch) | |
tree | b2c3db5558a433f4dbaa739aae2317eef9b5c313 | |
parent | 01faa352ccbd433989a07e8b40daed6f1d49de97 (diff) | |
download | cacert-devel-d051818b7731d025b4f01686e9266a5294bd04c7.tar.gz cacert-devel-d051818b7731d025b4f01686e9266a5294bd04c7.tar.xz cacert-devel-d051818b7731d025b4f01686e9266a5294bd04c7.zip |
bug 1062: the 'administrative increase'-checkbug-1062
-rwxr-xr-x | CommModule/client.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommModule/client.pl b/CommModule/client.pl index a36bad0..6cdb0db 100755 --- a/CommModule/client.pl +++ b/CommModule/client.pl @@ -441,7 +441,7 @@ sub calculateDays($) { if($_[0]) { - my @sum = $dbh->selectrow_array("select sum(`awarded`) as `total` from `notary` where `to`='".$_[0]."' and `deleted`=0 group by `to`"); + my @sum = $dbh->selectrow_array("select sum(`awarded`) as `total` from `notary` where `to`='".$_[0]."' and `deleted`=0 AND `notary`.`method` != 'Administrative Increase' AND `notary`.`from` != `notary`.`to` group by `to`"); SysLog("Summe: $sum[0]\n") if($debug); return ($sum[0]>=50)?730:180; |