Fix a php warning in select field