Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End undefined index: (problem) Re: undefined index: (problem)

#72599
SgtLegend
Member

If the array index “terms” doesn’t exist then this error will occur, what you need to do is the following…

if (isset($_GET) && !empty($_GET)) {
$nospaces = substr($_GET, 0, 4);
} else {
// Show an error message!
}

This will make sure the index exists otherwise it will show an error if you want it to.