mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Issue #5079 - PHP Warning
This commit is contained in:
@@ -1029,9 +1029,12 @@ class page_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
if($chap = $model->get('page_chapter'))
|
if($chap = $model->get('page_chapter'))
|
||||||
{
|
{
|
||||||
$model->set('chapter_sef', $this->chapters[$chap]['chapter_sef']);
|
if(isset($this->chapters[$chap]))
|
||||||
$parent = (int) $this->chapters[$chap]['chapter_parent'];
|
{
|
||||||
$model->set('book_sef', $this->chapters[$parent]['chapter_sef']);
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
@@ -404,7 +404,7 @@ class cron_admin_ui extends e_admin_ui
|
|||||||
elseif (!$active) // show instructions
|
elseif (!$active) // show instructions
|
||||||
{
|
{
|
||||||
$setpwd_message = $frm->open("generate")."<small>"
|
$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>";
|
$setpwd_message .= "</pre><small>". LAN_CRON_16."</small>";
|
||||||
if(e_DOMAIN && file_exists("/usr/local/cpanel/version"))
|
if(e_DOMAIN && file_exists("/usr/local/cpanel/version"))
|
||||||
|
Reference in New Issue
Block a user