Quote:
Originally Posted by teksigns
i fixed this myself
in :
includes/functions_databuild.php
Find:
Code:
delete_post_index($post['postid']); //remove search engine entries
}
}
if (!empty($userbyuserid) AND !$threadinfo['isdeleted'])
{ // if the thread is already deleted, the posts have already been reduced
add this right above it :
Code:
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "thanks WHERE threadid=$threadid");
save and your done !
now anytime you Physically remove it it will also remove the thanks.
|
What if there isn't a thanks message in the thread you want to delete. Wouldn't that give you a db error?