summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/Archive/Tar.php2
-rw-r--r--web/lib/gettext.php4
-rw-r--r--web/lib/pkgfuncs.inc.php18
3 files changed, 12 insertions, 12 deletions
diff --git a/web/lib/Archive/Tar.php b/web/lib/Archive/Tar.php
index 9249a068..32a2ccc3 100644
--- a/web/lib/Archive/Tar.php
+++ b/web/lib/Archive/Tar.php
@@ -1566,7 +1566,7 @@ class Archive_Tar extends PEAR
while (strlen($v_binary_data = $this->_readBlock()) != 0)
{
- $v_extract_file = FALSE;
+ $v_extract_file = false;
$v_extraction_stopped = 0;
if (!$this->_readHeader($v_binary_data, $v_header))
diff --git a/web/lib/gettext.php b/web/lib/gettext.php
index 5064047c..4ccd75db 100644
--- a/web/lib/gettext.php
+++ b/web/lib/gettext.php
@@ -410,7 +410,7 @@ class gettext_reader {
function pgettext($context, $msgid) {
$key = $context . chr(4) . $msgid;
$ret = $this->translate($key);
- if (strpos($ret, "\004") !== FALSE) {
+ if (strpos($ret, "\004") !== false) {
return $msgid;
} else {
return $ret;
@@ -420,7 +420,7 @@ class gettext_reader {
function npgettext($context, $singular, $plural, $number) {
$key = $context . chr(4) . $singular;
$ret = $this->ngettext($key, $plural, $number);
- if (strpos($ret, "\004") !== FALSE) {
+ if (strpos($ret, "\004") !== false) {
return $singular;
} else {
return $ret;
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 72daaf4f..72c64f6f 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 .= ", ";