mirror of
https://github.com/vrana/adminer.git
synced 2026-05-07 11:37:40 +02:00
Notices: Use idx()
This commit is contained in:
@@ -72,7 +72,7 @@ for (const el of qsa('textarea')) {
|
||||
hintOptions: {
|
||||
completeSingle: false,
|
||||
tables: <?php echo json_encode($tables); ?>,
|
||||
defaultTable: <?php echo json_encode($_GET["trigger"] ? $_GET["trigger"] : ($_GET["check"] ? $_GET["check"] : null)); ?>
|
||||
defaultTable: <?php echo json_encode($_GET["trigger"] ? $_GET["trigger"] : ($_GET["check"] ?: null)); ?>
|
||||
}
|
||||
});
|
||||
cm.setSize(width, height);
|
||||
|
||||
@@ -122,7 +122,7 @@ if (isset($_GET["imap"])) {
|
||||
function __construct($result) {
|
||||
$this->result = $result;
|
||||
$this->num_rows = count($result);
|
||||
$this->fields = ($result ? array_keys(reset($result)) : array());
|
||||
$this->fields = array_keys(idx($result, 0, array()));
|
||||
}
|
||||
|
||||
function fetch_assoc() {
|
||||
|
||||
Reference in New Issue
Block a user