I know how to do the isset thing, and I also know that the notice itself is no biggie, but it still bothers my ocd.
This is how my page handling the variables in the mentioned lines is set up:
//this part gets the page name from the url or sets the name to "Home"
if (isset($_GET['page'])):
$pageCurrent = ucfirst($_GET['page']);
else:
$pageCurrent = 'Home';
endif;
//this is a multiple array to handle the error pages
$errorPages = array(
'404' => array(
'errorTitle' => 'title',
'error' => 'content'
),
'403' => array(
'errorTitle' => 'title',
'error' => 'content'
)
);
//this two lines are the bastards giving me a hard time
$errorTitle = $errorPages[$pageCurrent]['errorTitle'];
$error = $errorPages[$pageCurrent]['error'];
You can view the whole thing on GitHub
Thanks