Can anyone please tell me why the following code will give me the error_editpriority template whenever I go to edit a post in only 1 certain forum? It tells me I have to be an Admin to edit the post and won't let me in to edit it.
PHP Code:
if($postinfo[editable]==0 and $getperms[cancontrolpanel]!=1) {
$editpriority="n Admin";
eval("standarderror(\"".gettemplate("error_editpriority")."\");");
exit;
} else if($postinfo[editable]==3 and $getperms[cancontrolpanel]!=1 and $getperms[ismoderator]!=1) {
$editpriority=" Supermoderator or Admin";
eval("standarderror(\"".gettemplate("error_editpriority")."\");");
exit;
} else if($postinfo[editable]==2 and !ismoderator($threadinfo[forumid],"caneditposts")) {
$editpriority=" Moderator, Supermoderator or Admin";
eval("standarderror(\"".gettemplate("error_editpriority")."\");");
exit;
}