summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-02-06 09:15:16 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-02-06 16:32:31 +0100
commit165bcba54e7cb2f21202fc24c01569fa63ce8baa (patch)
tree611dfd98f1188fa1eab50659540cfc1c8236ac53 /web/lib/pkgfuncs.inc.php
parentb8a31dcc72703b4cd597e4ce681abcf6b0a3d507 (diff)
downloadaurweb-165bcba54e7cb2f21202fc24c01569fa63ce8baa.tar.xz
Style fixes: Capitalization of "true" and "false"
Use "true" instead of "TRUE" and "false" instead of "FALSE" or "False". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 72daaf4..72c64f6 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -20,7 +20,7 @@ function canDeleteComment($comment_id=0, $atype="", $uid=0) {
}
if ($atype == "Trusted User" || $atype == "Developer") {
# A TU/Dev can delete any comment
- return TRUE;
+ return true;
}
$dbh = DB::connect();
$q = "SELECT COUNT(ID) AS CNT ";
@@ -31,10 +31,10 @@ function canDeleteComment($comment_id=0, $atype="", $uid=0) {
if ($result != NULL) {
$row = $result->fetch(PDO::FETCH_ASSOC);
if ($row['CNT'] > 0) {
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
/**
@@ -55,12 +55,12 @@ function canDeleteCommentArray($comment, $atype="", $uid=0) {
return false;
} elseif ($atype == "Trusted User" || $atype == "Developer") {
# A TU/Dev can delete any comment
- return TRUE;
+ return true;
} else if ($comment['UsersID'] == $uid) {
# User's own comment
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
/**
@@ -76,10 +76,10 @@ function canDeleteCommentArray($comment, $atype="", $uid=0) {
function canSubmitBlacklisted($atype = "") {
if ($atype == "Trusted User" || $atype == "Developer") {
# Only TUs/Devs can submit blacklisted packages.
- return TRUE;
+ return true;
}
else {
- return FALSE;
+ return false;
}
}
@@ -1194,7 +1194,7 @@ function pkg_notify ($atype, $ids, $action=true) {
}
if ($first)
- $first = False;
+ $first = false;
else
$output .= ", ";