Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
aurweb
Commits
a4873950
Commit
a4873950
authored
Jun 30, 2014
by
Lukas Fleischer
Browse files
Fix broken indentation in pkgbase_delete_comment()
Signed-off-by:
Lukas Fleischer
<
archlinux@cryptocrack.de
>
parent
74a82bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/lib/pkgbasefuncs.inc.php
View file @
a4873950
...
...
@@ -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."
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment