summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2015-04-22 22:39:39 +0200
committerFelix Dörre <felix@dogcraft.de>2015-04-28 09:40:19 +0200
commit5a2807d31137d71120c20e1b90f32b189502e7b8 (patch)
treec74bb7dce36025334d0f0ae7c9bc29e4ee5cfd03
parentfc6f286d2d344c61f13af501f9cf0304db3cdb57 (diff)
downloadcacert-devel-5a2807d31137d71120c20e1b90f32b189502e7b8.tar.gz
cacert-devel-5a2807d31137d71120c20e1b90f32b189502e7b8.tar.xz
cacert-devel-5a2807d31137d71120c20e1b90f32b189502e7b8.zip
upd: change condition for when a user is allowed to be emailed to what seemed to be intended
-rw-r--r--www/wot.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/www/wot.php b/www/wot.php
index d93c677..9560f39 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -475,9 +475,7 @@ function send_reminder()
$subject = $_REQUEST['subject'];
$userid = intval($_REQUEST['userid']);
$user = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($userid)."' and `listme`=1"));
- $points = mysql_num_rows(mysql_query("select sum(`awarded`) as `total` from `notary`
- where `to`='".intval($user['id'])."' and `deleted` = 0 group by `to` HAVING SUM(`awarded`) > 0"));
- if($points > 0)
+ if(is_assurer($userid) > 0)
{
$my_translation = L10n::get_translation();
L10n::set_translation($user['language']);