Fixed admin logic for modifyThread.php