1
0
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:
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
{