Shows all the prepared answers for validations.
authorStéphane Jacob <sj@m4x.org>
Sat, 29 Aug 2009 19:44:07 +0000 (21:44 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 29 Aug 2009 19:44:07 +0000 (21:44 +0200)
include/validations.inc.php

index 085fffc..4ae9086 100644 (file)
@@ -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];
     }