From 345b3216c87c7b365916e5948ad3bdb1bb045016 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 13:26:34 -0400 Subject: 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 Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 230cc2c..93e0469 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -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 = "
\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 = "$votes"; } -- cgit v1.2.3-54-g00ecf