Remove superfluous indentation level in mod/poco

This commit is contained in:
Hypolite Petovan 2020-06-08 18:58:05 -04:00
parent 6774ee6691
commit 0c1e876ee0
1 changed files with 132 additions and 132 deletions

View File

@ -204,7 +204,10 @@ function poco_init(App $a) {
}
}
if (is_array($contacts)) {
if (!is_array($contacts)) {
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
}
if (DBA::isResult($contacts)) {
foreach ($contacts as $contact) {
if (!isset($contact['updated'])) {
@ -338,9 +341,6 @@ function poco_init(App $a) {
} else {
$ret['entry'][] = [];
}
} else {
throw new \Friendica\Network\HTTPException\InternalServerErrorException();
}
Logger::log("End of poco", Logger::DEBUG);