mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #1831 filter invalid check count when creating poll
This commit is contained in:
parent
b6cb0cdf18
commit
731eacbe39
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class pollController extends poll
|
|||
$tmp_args[$poll_index]->title = $val;
|
||||
break;
|
||||
case 'checkcount':
|
||||
$tmp_args[$poll_index]->checkcount = $val;
|
||||
$tmp_args[$poll_index]->checkcount = max(1, intval($val));
|
||||
break;
|
||||
case 'item':
|
||||
$tmp_args[$poll_index]->item[] = $val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue