Unneeded variable removed

2022.09-rc
Michael 2020-07-13 14:16:44 +00:00
rodzic 5a6887fb2e
commit baea99dee6
2 zmienionych plików z 2 dodań i 6 usunięć

Wyświetl plik

@ -37,8 +37,6 @@ class NodeInfo120 extends BaseModule
{
$config = DI::config();
$imap = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
$nodeinfo = [
'version' => '2.0',
'software' => [
@ -74,7 +72,7 @@ class NodeInfo120 extends BaseModule
$nodeinfo['services']['inbound'][] = 'rss2.0';
$nodeinfo['services']['outbound'][] = 'atom1.0';
if ($imap) {
if (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only')) {
$nodeinfo['services']['inbound'][] = 'imap';
}

Wyświetl plik

@ -37,8 +37,6 @@ class NodeInfo210 extends BaseModule
{
$config = DI::config();
$imap = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
$nodeinfo = [
'version' => '1.0',
'server' => [
@ -74,7 +72,7 @@ class NodeInfo210 extends BaseModule
$nodeinfo['services']['inbound'][] = 'rss2.0';
$nodeinfo['services']['outbound'][] = 'atom1.0';
if ($imap) {
if (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only')) {
$nodeinfo['services']['inbound'][] = 'imap';
}