1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00

PDO: Handle PHP warnings for internal queries

This commit is contained in:
Jakub Vrana
2025-03-22 08:25:51 +01:00
parent 359d153130
commit db829fd463
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
- Display collation at table structure if different from table
- Ctrl+click in select moves the cursor in modern browsers
- URL parameter ?ext=pdo to force using PDO
- PDO: Handle PHP warnings for internal queries
- PostgreSQL: Display auto_increment of inserted rows
- PostgreSQL: Display description of system variables
- PostgreSQL: Avoid warning about crdb_version (bug #924, regression from 5.0.5)

View File

@@ -72,7 +72,7 @@ if (extension_loaded('pdo')) {
return false;
}
$row = $result->fetch();
return $row[$field];
return $row ? $row[$field] : false;
}
}