mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
b8a31dcc72
commit
165bcba54e
4 changed files with 15 additions and 15 deletions
|
@ -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 .= ", ";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue