mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00: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
|
@ -1105,8 +1105,8 @@ function pkg_change_category($atype, $dbh=NULL) {
|
|||
}
|
||||
|
||||
$uid = uid_from_sid($_COOKIE["AURSID"], $dbh);
|
||||
if ($uid == $pkg["MaintainerUID"] or
|
||||
($atype == "Developer" or $atype == "Trusted User")) {
|
||||
if ($uid == $pkg["MaintainerUID"] ||
|
||||
($atype == "Developer" || $atype == "Trusted User")) {
|
||||
$q = "UPDATE Packages ";
|
||||
$q.= "SET CategoryID = ".intval($category_id)." ";
|
||||
$q.= "WHERE ID = ".intval($pid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue