From 80ffabd9d502c9d24bd7d5c516747202007a72d5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 15 Sep 2016 15:00:58 +0200 Subject: [PATCH] Fixed potential issue when creating new language versions of a page --- wcfsetup/install/files/lib/acp/form/PageEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php index 04bca23b31..9e3e0992b3 100644 --- a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php @@ -120,7 +120,7 @@ class PageEditForm extends PageAddForm { } } else { - if (mb_strtolower($customURL) != mb_strtolower($this->page->getPageContents()[$languageID]->customURL)) { + if (isset($this->page->getPageContents()[$languageID]) && mb_strtolower($customURL) != mb_strtolower($this->page->getPageContents()[$languageID]->customURL)) { parent::validateCustomUrl($languageID, $customURL); } } -- 2.20.1