From e1d21e736a08840ce8a96b33fe233aee781e5647 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 29 Apr 2020 19:13:23 +0200 Subject: [PATCH] Update src/Database/Database.php Co-Authored-By: Hypolite Petovan --- src/Database/Database.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } /**