Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -170,6 +170,11 @@ EOF;
|
||||
/* Do all the questions have at least 2 options? */
|
||||
foreach ( $this->value->choices as $question )
|
||||
{
|
||||
/* Do we have a question title? */
|
||||
if ( empty( trim( $question['question'] ) ) )
|
||||
{
|
||||
throw new \InvalidArgumentException('form_poll_no_question_title');
|
||||
}
|
||||
if ( \count( $question['choice'] ) < 2 )
|
||||
{
|
||||
throw new \InvalidArgumentException('form_poll_too_few_answers');
|
||||
|
||||
Reference in new issue
Block a user