Now (1.03c) you can void Protected users.
I have changed the SQL sentences and now it is easier to edit the them. Now it works like:
Code:
$query = "SELECT * from `" . TABLE_PREFIX . "thread` Where forumid IN($frommove) AND `dateline` <= '" . (TIMENOW - ($whencreated * 86400)) . "'";
if(!$deletesticky)
{
$query .= " AND NOT `sticky`";
}
if(!empty($idadmin))
{
$query .= " AND `postuserid` NOT IN (".$idadmin.")";
}
If you have not protected users, empty($idadmin) will be true and then the condition AND `postuserid` NOT IN ( ) will not be added. You will not have the SQL error because of it.
It seems to work for me. I have not Protected users and I don't want to move stickies. I have enabled the debug mode and it shows this:
So it seems to work perfectly.
FYI: 1.04 will have "Protected threads". I'm working on it.