mirror of
https://github.com/friendica/friendica
synced 2024-11-19 08:23:40 +00:00
Update src/Database/Database.php
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
6487daa4a9
commit
e1d21e736a
1 changed files with 1 additions and 4 deletions
|
@ -1654,10 +1654,7 @@ class Database
|
|||
public function getVariable(string $name)
|
||||
{
|
||||
$result = $this->fetchFirst("SHOW GLOBAL VARIABLES WHERE `Variable_name` = ?", $name);
|
||||
if (!isset($result['Value'])) {
|
||||
return null;
|
||||
}
|
||||
return $result['Value'];
|
||||
return $result['Value'] ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue