]> git.joonet.de Git - adminer.git/commitdiff
Notices: fetch_field in PDO
authorJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 11:43:28 +0000 (12:43 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 12:53:10 +0000 (13:53 +0100)
adminer/include/pdo.inc.php

index 3567727b5ce9b11a5d04377fe753b479a812b4b9..8c3e103b8e527042a3d1b8a8a736ddd815794f19 100644 (file)
@@ -94,7 +94,7 @@ if (extension_loaded('pdo')) {
                function fetch_field() {
                        $row = (object) $this->getColumnMeta($this->_offset++);
                        $row->type = $row->pdo_type; //! map to MySQL numbers
-                       $row->charsetnr = (in_array("blob", (array) $row->flags) ? 63 : 0);
+                       $row->charsetnr = (isset($row->flags) && in_array("blob", (array) $row->flags) ? 63 : 0);
                        return $row;
                }