Skip to content

Commit

Permalink
Fix #33: XH 1.7: NOTICE: Undefined index: show_heading
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Mar 2, 2019
1 parent 6478bd2 commit 1b01355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Controller.php
Expand Up @@ -190,8 +190,8 @@ public static function getContent()
protected static function replaceAlternativeHeading($content, array $pageData)
{
global $cf;
if ($pageData['show_heading'] == '1') {

if (isset($pageData['show_heading']) && $pageData['show_heading'] == '1') {
$pattern = '/(<h[1-' . $cf['menu']['levels'] . '].*>).+(<\/h[1-'
. $cf['menu']['levels'] . ']>)/isU';
if (trim($pageData['heading']) == '') {
Expand Down

0 comments on commit 1b01355

Please sign in to comment.