1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Notices: Use idx()

This commit is contained in:
Jakub Vrana
2025-03-26 07:55:30 +01:00
parent 1a2ae0e29e
commit c5f87110ff
5 changed files with 7 additions and 6 deletions

View File

@@ -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() {