<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
];
if (!in_array($data, $newBlockList)) {
$newBlockList[] = $data;
- }
+ }
}
foreach ($currBlockList as $blocked) {
if (!in_array($blocked, $newBlockList)) {
$newBlockList[] = $blocked;
- }
+ }
}
if ($config->set('system', 'blocklist', $newBlockList)) {
$this->out(sprintf("Entries from %s that were not blocked before are now blocked", $filename));
/**
* Prints the whole list of blocked domains including the reason
*
- /* @param IConfig $config
+ * @param IConfig $config
*/
private function printBlockedServers(IConfig $config)
{