mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
TEMP: allow one option
This commit is contained in:
parent
690ba43271
commit
0fd0e336a0
2 changed files with 2 additions and 3 deletions
|
|
@ -100,8 +100,7 @@ class PollController extends Poll
|
|||
}
|
||||
}
|
||||
|
||||
// TEMP: allow empty poll if add item is on
|
||||
if((!isset($args->poll) || !is_array($args->poll) || !count($args->poll)) && $vars->add_item != '2')
|
||||
if(!isset($args->poll) || !is_array($args->poll) || !count($args->poll))
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('cmd_null_item');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue