optimize check

This commit is contained in:
Philipp Holzer 2019-04-30 22:25:38 +02:00
parent 6afeacf02b
commit 007d0459be
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 1 additions and 2 deletions

View 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']);