diff --git a/oc-includes/osclass/frm/Page.form.class.php b/oc-includes/osclass/frm/Page.form.class.php
index 9cfaf0adf3..cca10203c7 100755
--- a/oc-includes/osclass/frm/Page.form.class.php
+++ b/oc-includes/osclass/frm/Page.form.class.php
@@ -40,14 +40,17 @@ static public function internal_name_input_text($page = null) {
}
static public function link_checkbox($page = null) {
- $checked = true;
- if( is_array($page) && isset($page['b_link']) && $page['b_link']==0 ) {
- $checked = false;
- }
+ $checked = ! ( is_array($page) && isset($page['b_link']) && $page['b_link'] == 0 );
parent::generic_input_checkbox('b_link', "1", $checked);
}
+ static public function indexed_checkbox($page = null) {
+ $checked = ! ( is_array($page) && isset($page['b_indexed']) && $page['b_indexed'] == 0 );
+
+ parent::generic_input_checkbox('b_indexed', "1", $checked);
+ }
+
static public function multilanguage_name_description($locales, $page = null) {
$num_locales = count($locales);
if($num_locales > 1) echo '
';