1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Issue #5079 - PHP Warning

This commit is contained in:
camer0n
2023-10-30 08:05:00 -07:00
parent 6d632320a6
commit 187d45dcd8
2 changed files with 7 additions and 4 deletions

View File

@@ -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
{

View File

@@ -404,7 +404,7 @@ class cron_admin_ui extends e_admin_ui
elseif (!$active) // show instructions
{
$setpwd_message = $frm->open("generate")."<small>"
.LAN_CRON_15.":</small><br /><pre style='color:black'>".e_ROOT."cron.php token=".$pref['e_cron_pwd'].' >/dev/null 2>&1';
.LAN_CRON_15.":</small><br /><pre>".e_ROOT."cron.php token=".$pref['e_cron_pwd'].' >/dev/null 2>&1';
$setpwd_message .= "</pre><small>". LAN_CRON_16."</small>";
if(e_DOMAIN && file_exists("/usr/local/cpanel/version"))