From 710f20ab33544a29b2cce1526c3346f5a8736357 Mon Sep 17 00:00:00 2001 From: Lastorder <18280396+Lastorder-DC@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:28:54 +0900 Subject: [PATCH] TEMP: allow empty poll if add item is on --- modules/poll/poll.controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/poll/poll.controller.php b/modules/poll/poll.controller.php index eb3499e0b..4fb539a23 100644 --- a/modules/poll/poll.controller.php +++ b/modules/poll/poll.controller.php @@ -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'); }