wrong brackets, continue instead break
This commit is contained in:
parent
1d4b030f0b
commit
6e3c6e2eea
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue