Fix Fatal error in Protocol\Diaspora (#5460)

This commit is contained in:
Hypolite Petovan 2018-07-22 19:22:41 -04:00 committed by GitHub
parent ad857b4314
commit bb99ac8111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2764,6 +2764,10 @@ class Diaspora
return false; return false;
} }
if (!$contact) {
$contact = [];
}
logger("Got retraction for ".$target_type.", sender ".$sender." and user ".$importer["uid"], LOGGER_DEBUG); logger("Got retraction for ".$target_type.", sender ".$sender." and user ".$importer["uid"], LOGGER_DEBUG);
switch ($target_type) { switch ($target_type) {