mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
TEMP: allow empty poll if add item is on
This commit is contained in:
parent
6e84829da4
commit
710f20ab33
1 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,8 @@ class PollController extends Poll
|
|||
}
|
||||
}
|
||||
|
||||
if(!isset($args->poll) || !is_array($args->poll) || !count($args->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')
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('cmd_null_item');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue