summaryrefslogtreecommitdiff
path: root/web/lib/pkgbasefuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-06-30 08:57:05 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-06-30 08:57:05 +0200
commita48739508c8b9de9fb0af30b8b656c5f19378170 (patch)
tree43c221c571b3d2b05ec089850561e56d2189b546 /web/lib/pkgbasefuncs.inc.php
parent74a82bb2fbee234173df44ef7ba5f5a17b809cf1 (diff)
Fix broken indentation in pkgbase_delete_comment()
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgbasefuncs.inc.php')
-rw-r--r--web/lib/pkgbasefuncs.inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index ec48314..32c2d9b 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -860,13 +860,13 @@ function pkgbase_delete_comment($atype) {
$dbh = DB::connect();
$uid = uid_from_sid($_COOKIE["AURSID"]);
if (can_delete_comment($comment_id, $atype, $uid)) {
- $q = "UPDATE PackageComments ";
- $q.= "SET DelUsersID = ".$uid." ";
- $q.= "WHERE ID = ".intval($comment_id);
+ $q = "UPDATE PackageComments ";
+ $q.= "SET DelUsersID = ".$uid." ";
+ $q.= "WHERE ID = ".intval($comment_id);
$dbh->exec($q);
- return array(true, __("Comment has been deleted."));
+ return array(true, __("Comment has been deleted."));
} else {
- return array(false, __("You are not allowed to delete this comment."));
+ return array(false, __("You are not allowed to delete this comment."));
}
}