mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 03:24:20 +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'))
|
||||
{
|
||||
$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
|
||||
{
|
||||
|
Reference in New Issue
Block a user