https://dev.pezcollectors.com - PHP 8.1
Wrote custom menu system for my ~180 newsletter ez-pages. In tpl_page_default.php I check chapter number to use built in menu or mine like so:
Code:
if ($_GET['chapter'] >= "2000") { new menu crap }
if ($_GET['chapter'] < "2000") { default EZP TOC }
It all works as I want, but if you hit an ez-page that doesn't have chapters it throws PHP Warning: Undefined array key "chapter". I have tried wrapping it with !empty and isset but it still throws the error. Probably cuz I'm still trying to compare the number?
Can someone please help me with the correct syntax for if chapter >= 2000 do new, if chapter empty OR < 2000 do old?
Bookmarks