diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php
index b64f7f749..5c5eb3c75 100644
--- a/e107_admin/cpage.php
+++ b/e107_admin/cpage.php
@@ -1029,9 +1029,12 @@ class page_admin_ui extends e_admin_ui
if($chap = $model->get('page_chapter'))
{
- $model->set('chapter_sef', $this->chapters[$chap]['chapter_sef']);
- $parent = (int) $this->chapters[$chap]['chapter_parent'];
- $model->set('book_sef', $this->chapters[$parent]['chapter_sef']);
+ if(isset($this->chapters[$chap]))
+ {
+ $model->set('chapter_sef', $this->chapters[$chap]['chapter_sef']);
+ $parent = (int) $this->chapters[$chap]['chapter_parent'];
+ $model->set('book_sef', $this->chapters[$parent]['chapter_sef']);
+ }
}
else
{
diff --git a/e107_admin/cron.php b/e107_admin/cron.php
index 969aea376..726b6e9e0 100644
--- a/e107_admin/cron.php
+++ b/e107_admin/cron.php
@@ -404,7 +404,7 @@ class cron_admin_ui extends e_admin_ui
elseif (!$active) // show instructions
{
$setpwd_message = $frm->open("generate").""
- .LAN_CRON_15.":
".e_ROOT."cron.php token=".$pref['e_cron_pwd'].' >/dev/null 2>&1'; + .LAN_CRON_15.":".e_ROOT."cron.php token=".$pref['e_cron_pwd'].' >/dev/null 2>&1'; $setpwd_message .= "". LAN_CRON_16.""; if(e_DOMAIN && file_exists("/usr/local/cpanel/version"))