• PowerGamer1's avatar
    Update Dropdown.php (#149) · f41768b3
    PowerGamer1 authored
    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.
    f41768b3
Dropdown.php 5.32 KB