mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
e7f6deeb33
commit
345b3216c8
4 changed files with 8 additions and 8 deletions
|
@ -9,8 +9,8 @@ else {
|
|||
$pkgid = pkgid_from_name($_REQUEST['N']);
|
||||
}
|
||||
|
||||
if ($uid == $row["MaintainerUID"] or
|
||||
($atype == "Developer" or $atype == "Trusted User")) {
|
||||
if ($uid == $row["MaintainerUID"] ||
|
||||
($atype == "Developer" || $atype == "Trusted User")) {
|
||||
|
||||
$catarr = pkgCategories();
|
||||
$edit_cat = "<form method='post' action='packages.php?ID=".$pkgid."'>\n";
|
||||
|
@ -55,7 +55,7 @@ if ($row["MaintainerUID"]) {
|
|||
}
|
||||
|
||||
$votes = __('Votes') . ': ' . $row['NumVotes'];
|
||||
if ($atype == "Developer" or $atype == "Trusted User") {
|
||||
if ($atype == "Developer" || $atype == "Trusted User") {
|
||||
$votes = "<a href=\"voters.php?ID=$pkgid\">$votes</a>";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue