];
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)
{