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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user