summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-05-23 19:26:34 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:25:45 +0200
commit345b3216c87c7b365916e5948ad3bdb1bb045016 (patch)
treee06ed5bb3870a874f7da41f4de55fba60a4840d7 /web/lib/pkgfuncs.inc.php
parente7f6deeb3340a5e8cd97cfc9321b411b16fce618 (diff)
downloadaur-345b3216c87c7b365916e5948ad3bdb1bb045016.tar.gz
aur-345b3216c87c7b365916e5948ad3bdb1bb045016.tar.xz
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/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 2dcbec8e..d34b415f 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -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);