diff --git a/include/functions.php b/include/functions.php index 04ad042..2ee49bd 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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); diff --git a/version.php b/version.php index e61d70d..7c8c844 100644 --- a/version.php +++ b/version.php @@ -1,3 +1,3 @@ \ No newline at end of file