bug 1221: make formatting consistent with the surrounding code
authorMichael Tänzer <neo@nhng.de>
Fri, 21 Mar 2014 15:30:55 +0000 (16:30 +0100)
committerMichael Tänzer <neo@nhng.de>
Fri, 21 Mar 2014 15:30:55 +0000 (16:30 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/lib/account.php
www/wot.php

index de25b62..8590213 100644 (file)
@@ -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
                        )';
 
index aef5a01..be97cb4 100644 (file)
@@ -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)
                {