better checking for existing value

This commit is contained in:
Uwe Steinmann 2019-11-26 17:07:47 +01:00
parent 1763bd1bae
commit fd4a821fa8

View File

@ -906,7 +906,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
(!empty($value['type']) ? ' type="'.$value['type'].'"' : '').
(!empty($value['id']) ? ' id="'.$value['id'].'"' : '').
(!empty($value['name']) ? ' name="'.$value['name'].'"' : '').
(is_string($value['value']) || !empty($value['value']) ? ' value="'.$value['value'].'"' : '').
((isset($value['value']) && is_string($value['value'])) || !empty($value['value']) ? ' value="'.$value['value'].'"' : '').
(!empty($value['placeholder']) ? ' placeholder="'.$value['placeholder'].'"' : '').
(!empty($value['autocomplete']) ? ' autocomplete="'.$value['autocomplete'].'"' : '').
(!empty($value['checked']) ? ' checked' : '').