MDL-71394 core_blog: fix incorrect default setting in form

the keys of the options are strings, in PHP8 strings are compared with 0 differently
This commit is contained in:
Marina Glancy
2021-04-21 16:24:11 +02:00
parent 9600becce3
commit 855d6249dc
+1 -1
View File
@@ -63,7 +63,7 @@ class blog_edit_form extends moodleform {
$mform->addElement('select', 'publishstate', get_string('publishto', 'blog'), $publishstates);
$mform->addHelpButton('publishstate', 'publishto', 'blog');
$mform->setDefault('publishstate', 0);
$mform->setDefault('publishstate', 'site');
if (core_tag_tag::is_enabled('core', 'post')) {
$mform->addElement('header', 'tagshdr', get_string('tags', 'tag'));