use wcf\data\user\group\option\UserGroupOptionEditor;
use wcf\data\user\group\UserGroup;
use wcf\system\devtools\pip\IIdempotentPackageInstallationPlugin;
+use wcf\system\exception\SystemException;
use wcf\system\WCF;
use wcf\util\StringUtil;
if (isset($option['options'])) $options = StringUtil::normalizeCsv($option['options']);
if (isset($option['usersonly'])) $usersOnly = $option['usersonly'];
+ if (empty($optionType)) {
+ throw new SystemException("Expected a non-empty 'optiontype' value for the option '".$optionName."'.");
+ }
+
// force the `html` bbcode to be disabled by default
if ($optionType === 'BBCodeSelect') {
$defaultValue .= (empty($defaultValue) ? '' : ',') . 'html';