forum page counting bug

cn9 [1337boy]
8 years ago

0

the forum says there are 445 pages of threads while there are only 437
https://www.hackthis.co.uk/forum/?page=437
https://www.hackthis.co.uk/forum/?page=445

8 pages of nothing? maybe a bug that doesn’t -1 the thread counting when a thread is deleted?

4replies
2voices
221views
Mugi [Mugiwara27]
8 years ago

0

Yeah I think this problem is here because of the website who doesn’t -1 when a thread is deleted

cn9 [1337boy]
8 years ago

0

thought the same, i’m trying to locate it in the source on github ahah

Mugi [Mugiwara27]
8 years ago

0

Trying to do the same thing :p

cn9 [1337boy]
8 years ago

0

``` public function deleteThread($thread_id) {
if ($this->app->user->forum_priv <= 1)
return false;

        // delete thread  
        $st = $this->app->db->prepare("UPDATE forum_threads  
                                       SET deleted = '1'  
                                       WHERE thread_id = :tid");  

        // all posts will also be marked as deleted by trigger  
        return $st->execute(array(':tid'=>$thread_id));   
    }```  

in files/class.forum.php

You must be logged in to reply to this discussion. Login
1 of 5

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss