TEMP: allow empty poll if add item is on

This commit is contained in:
Lastorder 2024-11-22 09:28:54 +09:00 committed by GitHub
parent 6e84829da4
commit 710f20ab33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
}