diff options
author | Benny Baumann <BenBE@geshi.org> | 2013-11-19 23:02:00 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2013-11-19 23:24:09 +0100 |
commit | b8b0d0044fcac7402bba19bfd601339bf61f1a69 (patch) | |
tree | 3f3a822ec0d60e2ed3119fa65244aee19528e6f1 /includes/lib/general.php | |
parent | 1d4a0decbddcb0a1c78203720e7a7dcfd702590b (diff) | |
download | cacert-devel-b8b0d0044fcac7402bba19bfd601339bf61f1a69.tar.gz cacert-devel-b8b0d0044fcac7402bba19bfd601339bf61f1a69.tar.xz cacert-devel-b8b0d0044fcac7402bba19bfd601339bf61f1a69.zip |
bug 1221: added `deleted` = 0
Diffstat (limited to 'includes/lib/general.php')
-rw-r--r-- | includes/lib/general.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/lib/general.php b/includes/lib/general.php index 85b132d..cb73c51 100644 --- a/includes/lib/general.php +++ b/includes/lib/general.php @@ -146,7 +146,7 @@ function runCommand($command, $input = "", &$output = null, &$errors = true) { $Result |= 5; } - $query = mysql_query('SELECT SUM(`points`) AS `points` FROM `notary` AS `n` WHERE `n`.`to` = \''.(int)intval($userID).'\' AND `n`.`expire` < now()'); + $query = mysql_query('SELECT SUM(`points`) AS `points` FROM `notary` AS `n` WHERE `n`.`to` = \''.(int)intval($userID).'\' AND `n`.`expire` < now() and `deleted` = 0'); $row = mysql_fetch_assoc($query); if ($row['points'] < 100) { $Result |= 3; |