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

Notices: fetch_field in PDO

This commit is contained in:
Jakub Vrana
2025-03-24 12:43:28 +01:00
parent b349830758
commit d22b1091f1

View 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;
}