mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
Fix errors discovered by tests
This commit is contained in:
@@ -385,7 +385,7 @@ class Adminer {
|
||||
$i = 0;
|
||||
$select[""] = array();
|
||||
foreach ($select as $key => $val) {
|
||||
$val = $_GET["columns"][$key];
|
||||
$val = idx($_GET["columns"], $key, array());
|
||||
$column = select_input(
|
||||
" name='columns[$i][col]'",
|
||||
$columns,
|
||||
@@ -879,7 +879,7 @@ class Adminer {
|
||||
$values = array();
|
||||
foreach ($row as $val) {
|
||||
$field = $result->fetch_field();
|
||||
if ($fields[$field->name]['generated']) {
|
||||
if (idx($fields[$field->name], 'generated')) {
|
||||
$generated[$field->name] = true;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user