remove whitespaces and -suffixes in lookup
This commit is contained in:
parent
097f18881a
commit
69c19afa6c
2 changed files with 5 additions and 1 deletions
|
@ -479,6 +479,10 @@ function getActiveYSFReflectors($logLines) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getName($callsign) {
|
function getName($callsign) {
|
||||||
|
$callsign = trim($callsign);
|
||||||
|
if (strpos($callsign,"-")) {
|
||||||
|
$callsign = substr($callsign,0,strpos($callsign,"-"));
|
||||||
|
}
|
||||||
exec("grep ".$callsign." ".DMRIDDATPATH, $output);
|
exec("grep ".$callsign." ".DMRIDDATPATH, $output);
|
||||||
$name = substr($output[0], strpos($output[0]," ")+1);
|
$name = substr($output[0], strpos($output[0]," ")+1);
|
||||||
$name = substr($name, strpos($name," ")+1);
|
$name = substr($name, strpos($name," ")+1);
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20160715-1");
|
define("VERSION", "20160715-2");
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue