Fix php warnings

for select field
Merge pull request #126 from mintbird/master

Fix a php warning in select field