]> git.mxchange.org Git - friendica.git/commitdiff
optimize check
authorPhilipp Holzer <admin@philipp.info>
Tue, 30 Apr 2019 20:25:38 +0000 (22:25 +0200)
committerPhilipp Holzer <admin@philipp.info>
Wed, 1 May 2019 16:24:41 +0000 (18:24 +0200)
src/Module/Hostxrd.php

index 75997c86b43a281e6830243eeddc5d08a4ccbf9c..4f95ebb451c75cf9f4c3ce581ae72c9f34299a5b 100644 (file)
@@ -30,9 +30,8 @@ class Hostxrd extends BaseModule
                $config = $app->getConfig();
 
                header("Content-type: text/xml");
-               $pubkey = $config->get('system', 'site_pubkey');
 
-               if (!$pubkey) {
+               if (!$config->get('system', 'site_pubkey', false)) {
                        $res = Crypto::newKeypair(1024);
 
                        $config->set('system','site_prvkey', $res['prvkey']);