Notices what else? (#5545)

* Poco isn't filled, so we cannot store it

* We should initialize our variables
This commit is contained in:
Michael Vogel 2018-08-02 16:11:21 +02:00 committed by Tobias Diekershoff
parent c72c64a6d8
commit 65d752d03c
4 changed files with 8 additions and 13 deletions

View file

@ -925,7 +925,6 @@ class Probe
|| !isset($data["confirm"])
|| !isset($data["request"])
|| !isset($data["poll"])
|| !isset($data["poco"])
|| !isset($data["name"])
|| !isset($data["photo"])
) {
@ -939,16 +938,10 @@ class Probe
$prof_data["dfrn-confirm"] = $data["confirm"];
$prof_data["dfrn-notify"] = $data["notify"];
$prof_data["dfrn-poll"] = $data["poll"];
$prof_data["dfrn-poco"] = $data["poco"];
$prof_data["photo"] = $data["photo"];
$prof_data["fn"] = $data["name"];
$prof_data["key"] = $data["pubkey"];
// This logging is for temporarily debugging reasons
if (!isset($data["poco"])) {
logger('POCO not defined for ' . $profile_link . ' - ' . System::callstack(), LOGGER_DEBUG);
}
logger("Result for profile ".$profile_link.": ".print_r($prof_data, true), LOGGER_DEBUG);
return $prof_data;