cmb69 / onepage_xh

Tools for creating "one pagers" with CMSimple_XH
GNU General Public License v3.0
3 stars 2 forks source link

XH 1.7: NOTICE: Undefined index: show_heading #33

Closed cmb69 closed 5 years ago

cmb69 commented 6 years ago

$pageData['show_heading has been removed as of CMSimple_XH 1.7, so the unconditional test is erroneous. Actually, the whole method ::replaceAlternativeHeading() doesn't make sense under CMSimple_XH 1.7.

lck-git commented 6 years ago

Gibt es dafür schon einen Quick-Fix?

cmb69 commented 6 years ago

Man könnte wohl diese Zeile durch folgende ersetzen:

        if (isset($pageData['show_heading']) && $pageData['show_heading'] == '1') {
lck-git commented 6 years ago

Sehr schön, danke. Damit verschwindet die Notice.