mirror of
https://github.com/vrana/adminer.git
synced 2025-11-18 02:50:39 +01:00
Space in type (bug 1896054)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@382 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -18,7 +18,7 @@ function optionlist($options, $selected = array()) {
|
||||
if (is_array($v)) {
|
||||
$return .= '<optgroup label="' . htmlspecialchars($k) . '">';
|
||||
}
|
||||
foreach ((is_array($v) ? $v : array($k => $v)) as $key => $val) {
|
||||
foreach ((is_array($v) ? $v : array($v)) as $val) {
|
||||
$checked = in_array($val, (array) $selected, true);
|
||||
$return .= '<option' . ($checked ? ' selected="selected"' : '') . '>' . htmlspecialchars($val) . '</option>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user