Some calls saved

This commit is contained in:
Roland Häder 2022-06-19 11:25:52 +02:00
parent 60f8c2d795
commit c0d7f8944d
No known key found for this signature in database
GPG Key ID: C82EDE5DDFA0BA77

View File

@ -535,7 +535,7 @@ class GServer
$serverdata['last_contact'] = DateTimeFormat::utcNow();
$serverdata['failed'] = false;
$gserver = DBA::selectFirst('gserver', ['network'], ['nurl' => Strings::normaliseLink($url)]);
$gserver = DBA::selectFirst('gserver', ['network'], ['nurl' => $serverdata['nurl']]);
if (!DBA::isResult($gserver)) {
$serverdata['created'] = DateTimeFormat::utcNow();
$ret = DBA::insert('gserver', $serverdata);