Fixing SQL error when receiving DFRN posts (#5527)

* Some more notices

* Fixed nasty to find notice in DFRN and OStatus

* And more notices ...

* Yeah, some removed notices ... again ...

* Fixing bad SQL query
This commit is contained in:
Michael Vogel 2018-07-30 07:06:32 +02:00 committed by Tobias Diekershoff
parent a2cea16954
commit 1eb8f04274
3 changed files with 30 additions and 5 deletions

View file

@ -212,7 +212,8 @@ function dfrn_dispatch_public($postdata)
}
// We now have some contact, so we fetch it
$importer = DBA::fetchFirst("SELECT *, `name` as `senderName`
$importer = DBA::fetchFirst("SELECT *, `name` as `senderName`,
0 AS `importer_uid`,
'' AS `uprvkey`,
'UTC' AS `timezone`,
'' AS `nickname`,
@ -225,8 +226,6 @@ function dfrn_dispatch_public($postdata)
WHERE NOT `blocked` AND `id` = ? LIMIT 1",
$contact['id']);
$importer['importer_uid'] = 0;
// This should never fail
if (!DBA::isResult($importer)) {
logger('Contact not found for address ' . $msg['author']);