Fix php warnings

for select field