mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
Editor: PDO: Select value of foreign key in edit (bug #847)
This commit is contained in:
@@ -202,7 +202,7 @@ function optionlist($options, $selected = null, $use_keys = false) {
|
||||
$opts = $v;
|
||||
}
|
||||
foreach ($opts as $key => $val) {
|
||||
$return .= '<option' . ($use_keys || is_string($key) ? ' value="' . h($key) . '"' : '') . (($use_keys || is_string($key) ? (string) $key : $val) === $selected ? ' selected' : '') . '>' . h($val);
|
||||
$return .= '<option' . ($use_keys || is_string($key) ? ' value="' . h($key) . '"' : '') . (($use_keys || is_string($key) ? (string) $key : $val) === (string) $selected ? ' selected' : '') . '>' . h($val);
|
||||
}
|
||||
if (is_array($v)) {
|
||||
$return .= '</optgroup>';
|
||||
|
@@ -1,5 +1,6 @@
|
||||
Adminer 4.16.1-dev:
|
||||
SQLite: Show all supported pragmas in Variables
|
||||
Editor: PDO: Select value of foreign key in edit (bug #847)
|
||||
|
||||
Adminer 4.16.0 (released 2025-02-20):
|
||||
MySQL: Fix saving bit(64) values (bug #839)
|
||||
|
Reference in New Issue
Block a user