diff options
author | canyonknight <canyonknight@gmail.com> | 2012-05-23 13:26:34 -0400 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-06 11:25:45 +0200 |
commit | 345b3216c87c7b365916e5948ad3bdb1bb045016 (patch) | |
tree | e06ed5bb3870a874f7da41f4de55fba60a4840d7 /web/html | |
parent | e7f6deeb3340a5e8cd97cfc9321b411b16fce618 (diff) |
Be consistent in PHP logical operator usage
A mix of logical operator styles are currently in use. The predominant style
uses "&&" and "||" instead of "and" and "or", respectively. This inconsistency
is minor, but is easily avoided.
Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/addvote.php | 2 | ||||
-rw-r--r-- | web/html/tu.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php index f0e7d31..4b6c5b5 100644 --- a/web/html/addvote.php +++ b/web/html/addvote.php @@ -13,7 +13,7 @@ if (isset($_COOKIE["AURSID"])) { $atype = ""; } -if ($atype == "Trusted User" OR $atype == "Developer") { +if ($atype == "Trusted User" || $atype == "Developer") { $dbh = db_connect(); if (!empty($_POST['addVote'])) { diff --git a/web/html/tu.php b/web/html/tu.php index 6e04353..9d4fc50 100644 --- a/web/html/tu.php +++ b/web/html/tu.php @@ -19,7 +19,7 @@ if (isset($_COOKIE["AURSID"])) { $atype = account_from_sid($_COOKIE["AURSID"]); } -if ($atype == "Trusted User" OR $atype == "Developer") { +if ($atype == "Trusted User" || $atype == "Developer") { if (isset($_GET['id'])) { if (is_numeric($_GET['id'])) { @@ -123,7 +123,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") { else $by = 'desc'; - if (!empty($offset) AND is_numeric($offset)) { + if (!empty($offset) && is_numeric($offset)) { if ($offset >= 1) { $off = $offset; } else { |