Can report a question

This commit is contained in:
Némunaire 2012-06-19 19:13:44 +02:00
commit 9bbdfffe26
4 changed files with 40 additions and 10 deletions

View file

@ -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;