Notices: Declare properties in fetch_field()

This commit is contained in:
Jakub Vrana
2025-03-24 09:49:42 +01:00
parent c47590bb0d
commit b8eb0ad8f5
12 changed files with 19 additions and 23 deletions

View File

@@ -112,7 +112,7 @@ if (isset($_GET["simpledb"])) {
function fetch_field() {
$keys = array_keys($this->rows[0]);
return (object) array('name' => $keys[$this->offset++]);
return (object) array('name' => $keys[$this->offset++], 'type' => 0, 'charsetnr' => 0);
}
}
}