getOwner(); if ($logged_in_user->getID()==$owner->getID()){ if (!$thread->setStatus(THREAD_SOLVED)){ error_page("Could not update the status of the thread: ".$thread->getID()); } } else { error_page("You must be the owner of the thread to do this"); } // -------------- page_head("Status of the thread"); echo "
The status has been updated. Thank you!
"; echo ""; page_tail(); ?>