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

Use a helper

This commit is contained in:
Jakub Vrana
2025-03-31 12:24:27 +02:00
parent 2504ea23c4
commit 7dd214a03c

View File

@@ -164,7 +164,7 @@ function get_password() {
* @return string|false false if error
*/
function get_val(string $query, int $field = 0, ?Db $conn = null) {
$conn = (is_object($conn) ? $conn : connection());
$conn = connection($conn);
$result = $conn->query($query);
if (!is_object($result)) {
return false;