File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
wcfsetup/install/files/lib/acp/form Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -537,18 +537,16 @@ protected function normalizeCustomUrl(string $customUrl): string
537537 */
538538 protected function validateTitle ()
539539 {
540- if ($ this ->addPageToMainMenu ) {
541- if ($ this ->isMultilingual ) {
542- foreach ($ this ->availableLanguages as $ language ) {
543- if (empty ($ this ->title [$ language ->languageID ])) {
544- throw new UserInputException ('title_ ' . $ language ->languageID );
545- }
546- }
547- } else {
548- if (empty ($ this ->title [0 ])) {
549- throw new UserInputException ('title ' );
540+ if ($ this ->isMultilingual ) {
541+ foreach ($ this ->availableLanguages as $ language ) {
542+ if (empty ($ this ->title [$ language ->languageID ])) {
543+ throw new UserInputException ('title_ ' . $ language ->languageID );
550544 }
551545 }
546+ } else {
547+ if (empty ($ this ->title [0 ])) {
548+ throw new UserInputException ('title ' );
549+ }
552550 }
553551 }
554552
You can’t perform that action at this time.
0 commit comments