Can report a question
This commit is contained in:
parent
63e14532f8
commit
9bbdfffe26
4 changed files with 40 additions and 10 deletions
|
|
@ -65,7 +65,11 @@ class Question
|
|||
|
||||
public function get_writer()
|
||||
{
|
||||
return User::getUser($this->writer);
|
||||
$u = User::getUser($this->writer);
|
||||
if (isset($u))
|
||||
return $u;
|
||||
else
|
||||
return User::getUser("nemubot");
|
||||
}
|
||||
|
||||
public function get_validator()
|
||||
|
|
@ -140,6 +144,11 @@ class Question
|
|||
$this->reported = $reported;
|
||||
}
|
||||
|
||||
public function isReported()
|
||||
{
|
||||
return $this->reported;
|
||||
}
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
|
|
|
|||
Reference in a new issue