Update src/Database/Database.php
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
6487daa4a9
commit
e1d21e736a
|
@ -1654,10 +1654,7 @@ class Database
|
||||||
public function getVariable(string $name)
|
public function getVariable(string $name)
|
||||||
{
|
{
|
||||||
$result = $this->fetchFirst("SHOW GLOBAL VARIABLES WHERE `Variable_name` = ?", $name);
|
$result = $this->fetchFirst("SHOW GLOBAL VARIABLES WHERE `Variable_name` = ?", $name);
|
||||||
if (!isset($result['Value'])) {
|
return $result['Value'] ?? null;
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return $result['Value'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user