Merge branch 'master' of ssh://p0m.fr:6224/git/nemubot_askweb

This commit is contained in:
Bertrand 2012-06-09 23:06:07 +02:00
commit e0d31d291a
3 changed files with 30 additions and 51 deletions

View file

@ -50,9 +50,15 @@ class Question
return $q;
}
public function regen_id()
{
$this->id = md5(time().$this->question.$this->validator);
}
public function set_validator($val)
{
$this->validator = $val;
$this->regen_id();
}
public function get_validator()