This message "Notice: Undefined index:" shows up in php pages when an element does not exist in an array, e.g.

if($arr[’$elementName’])… 

The cure is simple: put isset() around it. e.g.:

if(isset($arr[’$elementName’]))