Quote:
Originally Posted by Torqued
John,
Seem I've found another issue:
I added a warning for a user as admin, and then removed that warning.
Whenever I try to add a warning for another post, I get the following message:
I am getting this on posts that I have not warned this user for before.
I have done some additional testing, and it seems that this only occurs after I have added a non-post related warning. Once the user has a non-post related warning, if I try to add a post-related warning, I get the above error message.
edited again to add:
Even if the non-post related warnings are deleted/inactivated, I still get the above error message. I can only add new post-related warnings after I prune all non-post related warnings for a user. 
|
Oooops,
This thing is getting too complicated. It's impossible to test every combination!!
OK, easy one. Please find the following line in Warn.php:
PHP Code:
if($_POST['post']=="" || !$_POST['post'] || $_POST['post']<1){
RunError("Invalid Post ID Input");
}
if($postwarnedalready=$DB->query_first("select warned_post from ".TABLE_PREFIX."warnings where warned_post='{$_GET['post']}'") AND $warn_options[multiple_per_post]=="No")
{
RunError("This post has already been warned for. You cannot issue another warning for it.");
}
Change it to:
PHP Code:
if($_POST['post']=="" || !$_POST['post'] || $_POST['post']<1){
RunError("Invalid Post ID Input");
}
if($postwarnedalready=$DB->query_first("select warned_post from ".TABLE_PREFIX."warnings where warned_post='{$_POST['post']}'") AND $warn_options[multiple_per_post]=="No")
{
RunError("This post has already been warned for. You cannot issue another warning for it.");
}
Sorry!!!