diff --git a/e107_admin/docs.php b/e107_admin/docs.php
index f2270e6f6..3db2ba299 100644
--- a/e107_admin/docs.php
+++ b/e107_admin/docs.php
@@ -11,7 +11,7 @@
*
*/
require_once(__DIR__ . '/../class2.php');
-if(!ADMIN)
+if(!deftrue('ADMIN'))
{
e107::redirect();
exit;
@@ -129,7 +129,7 @@ class docs_ui extends e_admin_ui
$text .= "
-
" . LAN_DOCS . SEP . str_replace("_", " ", $helpdata['fname']) . "
+ " . LAN_DOCS . defset('SEP') . str_replace("_", " ", $helpdata['fname']) . "
{$tmp}
";
diff --git a/e107_admin/frontpage.php b/e107_admin/frontpage.php
index 97ad1253e..8d51897c4 100644
--- a/e107_admin/frontpage.php
+++ b/e107_admin/frontpage.php
@@ -356,13 +356,14 @@ class frontpage
elseif(vartrue($_GET['id']))
{
$key = intval($_GET['id']);
- $text = $this->edit_rule($fp_settings[$key]); // Display edit form as well
+ $val = $fp_settings[$key] ?? array();
+ $text = $this->edit_rule($val); // Display edit form as well
// $text .= $this->select_class($fp_settings, FALSE);
- $ns->tablerender(FRTLAN_PAGE_TITLE.SEP.FRTLAN_46, $text);
+ $ns->tablerender(FRTLAN_PAGE_TITLE.defset('SEP').FRTLAN_46, $text);
}
else
{ // Just show existing rules
- $ns->tablerender(FRTLAN_PAGE_TITLE.SEP.FRTLAN_13, $mes->render().$this->select_class($fp_settings, TRUE));
+ $ns->tablerender(FRTLAN_PAGE_TITLE.defset('SEP').FRTLAN_13, $mes->render().$this->select_class($fp_settings, TRUE));
}
}
@@ -475,13 +476,13 @@ class frontpage
$text_tmp_1 .= "
- ".$this->show_front_val('frontpage', $front_key, $front_value, $is_other_home, $rule_info['page'])."
+ ".$this->show_front_val('frontpage', $front_key, $front_value, $is_other_home, varset($rule_info['page']))."
";
$text_tmp_2 .= "
- ".$this->show_front_val('fp_force_page', $front_key, $front_value, $is_other_force, $rule_info['force'])."
+ ".$this->show_front_val('fp_force_page', $front_key, $front_value, $is_other_force, varset($rule_info['force']))."
";
@@ -491,12 +492,12 @@ class frontpage
$text = "