mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix broken indentation in pkgbase_delete_comment()
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
74a82bb2fb
commit
a48739508c
1 changed files with 5 additions and 5 deletions
|
@ -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."));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue