wrong brackets, continue instead break

This commit is contained in:
dg9vh 2016-05-03 06:50:49 +02:00
parent 1d4b030f0b
commit 6e3c6e2eea

View file

@ -21,9 +21,9 @@ function getHeardList($logLines) {
foreach ($logLines as $logLine) { foreach ($logLines as $logLine) {
//removing invalid lines //removing invalid lines
if(strpos($logLine,"BS_Dwn_Act")) { if(strpos($logLine,"BS_Dwn_Act")) {
break; continue;
} else if(strpos($logLine,"invalid access")) { } else if(strpos($logLine,"invalid access")) {
break; continue;
} }
$timestamp = substr($logLine, 3, 19); $timestamp = substr($logLine, 3, 19);
@ -44,7 +44,7 @@ function getHeardList($logLines) {
$source = "Network"; $source = "Network";
} }
if ( strlen($callsign <7) ) { if ( strlen($callsign) < 7 ) {
array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source)); array_push($heardList, array($timestamp, $mode, $callsign, $id, $target, $source));
} }
} }