summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/lib/account.php6
-rw-r--r--www/wot.php3
2 files changed, 6 insertions, 3 deletions
diff --git a/includes/lib/account.php b/includes/lib/account.php
index de25b62..8590213 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
)';
diff --git a/www/wot.php b/www/wot.php
index aef5a01..be97cb4 100644
--- a/www/wot.php
+++ b/www/wot.php
@@ -352,7 +352,8 @@ $iecho= "c";
`to`='".$_SESSION['_config']['notarise']['id']."' AND
`awarded`='$awarded' AND
`location`='".mysql_escape_string(stripslashes($_POST['location']))."' AND
- `date`='".mysql_escape_string(stripslashes($_POST['date']))."' and `deleted` = 0";
+ `date`='".mysql_escape_string(stripslashes($_POST['date']))."' AND
+ `deleted`=0";
$res = mysql_query($query);
if(mysql_num_rows($res) > 0)
{