Update Dropdown.php (#149)
Two changes: 1. Documented previously undocumented 'encode' item option. 2. Moved `is_string($item)` check to occur BEFORE `$item` is handled as array. When `$item` is a string `$item['visible']` would not be an error and will return the first character of that string. Doing `!$item['visible']` on the first character of a string does not make any sense.
Showing
Please register or sign in to comment