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>
This commit is contained in:
canyonknight 2012-05-23 13:26:34 -04:00 committed by Lukas Fleischer
parent e7f6deeb33
commit 345b3216c8
4 changed files with 8 additions and 8 deletions

View file

@ -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'])) {

View file

@ -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 {