From: Michael Vogel Date: Wed, 29 Apr 2020 17:13:23 +0000 (+0200) Subject: Update src/Database/Database.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1d21e736a08840ce8a96b33fe233aee781e5647;p=friendica.git Update src/Database/Database.php Co-Authored-By: Hypolite Petovan --- diff --git a/src/Database/Database.php b/src/Database/Database.php index 9892fc19af..ad0c857960 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -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; } /**