summaryrefslogtreecommitdiff
path: root/includes/lib/account.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/lib/account.php')
-rw-r--r--includes/lib/account.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/lib/account.php b/includes/lib/account.php
index 81bd59b..07d44aa 100644
--- a/includes/lib/account.php
+++ b/includes/lib/account.php
@@ -51,7 +51,8 @@ function fix_assurer_flag($userID = NULL)
SELECT SUM(`points`) FROM `notary` AS `n`
WHERE `n`.`to` = `u`.`id`
AND (`n`.`expire` > now()
- OR `n`.`expire` IS NULL) and `n`.`deleted` = 0
+ OR `n`.`expire` IS NULL)
+ AND `n`.`deleted` = 0
) >= 100';
$query = mysql_query($sql);
@@ -85,7 +86,8 @@ function fix_assurer_flag($userID = NULL)
AND (
`n`.`expire` > now()
OR `n`.`expire` IS NULL
- ) and `n`.`deleted` = 0
+ )
+ AND `n`.`deleted` = 0
) < 100
)';