/**
  * Marks the selected post.
  */
 public function mark()
 {
     if ($this->post != null) {
         $this->post->mark();
     } else {
         if (is_array($this->postID)) {
             $threadIDs = PostEditor::getThreadIDs(implode(',', $this->postID));
             if (!empty($threadIDs)) {
                 // check permissions
                 $sql = "SELECT\t*\n\t\t\t\t\tFROM\twbb" . WBB_N . "_thread\n\t\t\t\t\tWHERE\tthreadID IN (" . $threadIDs . ")";
                 $result = WCF::getDB()->sendQuery($sql);
                 while ($row = WCF::getDB()->fetchArray($result)) {
                     $thread = new ThreadEditor(null, $row);
                     $thread->enter();
                 }
                 foreach ($this->postID as $postID) {
                     $post = new PostEditor($postID);
                     $post->mark();
                 }
             }
         }
     }
 }