Commit a4873950 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Fix broken indentation in pkgbase_delete_comment()


Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 74a82bb2
......@@ -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."));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment