mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
Some calls saved
This commit is contained in:
parent
60f8c2d795
commit
c0d7f8944d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue