fixing a php notice (undefined variable)