]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Database/Database.php
authorMichael Vogel <icarus@dabo.de>
Wed, 29 Apr 2020 17:13:23 +0000 (19:13 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 17:13:23 +0000 (19:13 +0200)
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
src/Database/Database.php

index 9892fc19afeb97593df9e558868e3d450333fb2e..ad0c85796055c1b35c1ef91ff270a522b8ecfcce 100644 (file)
@@ -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;
        }
 
        /**