From: Stéphane Jacob Date: Sat, 29 Aug 2009 19:44:07 +0000 (+0200) Subject: Shows all the prepared answers for validations. X-Git-Tag: xorg/0.10.2~33^2~6 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=745539c09d8107274383de9df9b4273ea805f484;p=platal.git Shows all the prepared answers for validations. --- diff --git a/include/validations.inc.php b/include/validations.inc.php index 085fffc..4ae9086 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -363,7 +363,7 @@ abstract class Validate static $answers_table; if (!isset($answers_table[$this->type])) { $r = XDB::query("SELECT id, title, answer FROM requests_answers WHERE category = {?}", $this->type); - $answers_table[$this->type] = $r->fetchAllAssoc($r); + $answers_table[$this->type] = $r->fetchAllAssoc(); } return $answers_table[$this->type]; }