Commits

Anonymous committed a164c04

bugfix: empty database returned 404 page

Comments (0)

Files changed (2)

page.comments.php

     $commentIds[] = $row['comment_id'];
 }
 
-if(!count($comments)) exitWithHTTPstatus(404);
-
 $userVotes = array();
 if (isset($_SESSION['user'])) {
     $result = $D->query('SELECT comment_id
     $linkIds[] = $row['link_id'];
 }
 
-if(!count($links)) exitWithHTTPstatus(404);
-
 $userVotes = array();
 if (isset($_SESSION['user'])) {
     $result = $D->query('SELECT link_id