diff --git a/index.php b/index.php index 6e3b3b4..870258b 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,8 @@ $machine) { if ( - (isset($machine['network']) && isset($networks[$machine['network']]) && $networks[$machine['network']]['secure'] == 'true') - || ($network && in_array($machine['network'], $network['allowed'])) + ( + isset($machine['network']) + && isset($networks[$machine['network']]) + ) && ( + ( + $networks[$machine['network']]['secure'] == 'true' + ) || ( + $network + && isset($network['allowed']) + && in_array($machine['network'], $network['allowed']) + ) + ) ) { if (isset($machine['userkey']) && preg_match($SSH_KEY_REGEX, $machine['userkey'], $matches)) { $t .= $matches[0].' '.$machineName.'@'.($machine['network'] ? $machine['network'].'.' : '').$DOMAIN."\n";