mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Define "PackageComments.DelUsersID" as "NULL".
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
ac632980c3
commit
40ccf77ca0
3 changed files with 6 additions and 3 deletions
|
@ -181,7 +181,7 @@ function package_comments_count($pkgid = 0) {
|
|||
$dbh = db_connect();
|
||||
$q = "SELECT COUNT(*) FROM PackageComments ";
|
||||
$q.= "WHERE PackageID = " . mysql_real_escape_string($pkgid);
|
||||
$q.= " AND DelUsersID = 0";
|
||||
$q.= " AND DelUsersID IS NULL";
|
||||
}
|
||||
$result = db_query($q, $dbh);
|
||||
|
||||
|
@ -201,7 +201,7 @@ function package_comments($pkgid = 0) {
|
|||
$q.= "FROM PackageComments, Users ";
|
||||
$q.= "WHERE PackageComments.UsersID = Users.ID";
|
||||
$q.= " AND PackageID = ".mysql_real_escape_string($pkgid);
|
||||
$q.= " AND DelUsersID = 0"; # only display non-deleted comments
|
||||
$q.= " AND DelUsersID IS NULL"; # only display non-deleted comments
|
||||
$q.= " ORDER BY CommentTS DESC";
|
||||
|
||||
if (!isset($_GET['comments'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue