Fixed broken default value in page edit form
authorMarcel Werk <burntime@woltlab.com>
Sun, 26 Nov 2017 15:55:26 +0000 (16:55 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 26 Nov 2017 15:55:26 +0000 (16:55 +0100)
wcfsetup/install/files/lib/acp/form/PageEditForm.class.php

index 6c283a35a9b0905f83caa46f0a01768a771dbd5c..6907a0eff65fd9a44d40ac2b0433c3b85da21ab8 100644 (file)
@@ -245,6 +245,7 @@ class PageEditForm extends PageAddForm {
                        if ($this->page->isDisabled) $this->isDisabled = 1;
                        if ($this->page->availableDuringOfflineMode) $this->availableDuringOfflineMode = 1;
                        if ($this->page->allowSpidersToIndex) $this->allowSpidersToIndex = 1;
+                       else $this->allowSpidersToIndex = 0;
                        
                        foreach ($this->page->getPageContents() as $languageID => $content) {
                                $this->title[$languageID] = $content->title;