Fix Fatal error in Protocol\OStatus (#5450)

This commit is contained in:
Hypolite Petovan 2018-07-22 12:52:38 -04:00 committed by GitHub
parent 0a519f5001
commit 3500e50be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ class OStatus
* *
* @return boolean Could the XML be processed? * @return boolean Could the XML be processed?
*/ */
private static function process($xml, array $importer, array &$contact, &$hub, $stored = false, $initialize = true) private static function process($xml, array $importer, array &$contact = null, &$hub, $stored = false, $initialize = true)
{ {
if ($initialize) { if ($initialize) {
self::$itemlist = []; self::$itemlist = [];