remove whitespaces and -suffixes in lookup

This commit is contained in:
dg9vh 2016-07-15 20:52:40 +00:00
parent 097f18881a
commit 69c19afa6c
2 changed files with 5 additions and 1 deletions

View file

@ -479,6 +479,10 @@ function getActiveYSFReflectors($logLines) {
}
function getName($callsign) {
$callsign = trim($callsign);
if (strpos($callsign,"-")) {
$callsign = substr($callsign,0,strpos($callsign,"-"));
}
exec("grep ".$callsign." ".DMRIDDATPATH, $output);
$name = substr($output[0], strpos($output[0]," ")+1);
$name = substr($name, strpos($name," ")+1);

View file

@ -1,3 +1,3 @@
<?php
define("VERSION", "20160715-1");
define("VERSION", "20160715-2");
?>