also for getDMRNetwork2()

This commit is contained in:
dg9vh 2017-01-10 20:20:46 +00:00
parent 99687f6776
commit 50c1550393

View file

@ -57,10 +57,14 @@ function getDMRNetwork() {
} }
function getDMRNetwork2() { function getDMRNetwork2() {
if (file_exists('../config/DMRNetwork.txt')) {
$fp = fopen('../config/DMRNetwork.txt', 'r'); $fp = fopen('../config/DMRNetwork.txt', 'r');
$network = fread($fp, filesize("../config/DMRNetwork.txt")); $network = fread($fp, filesize("../config/DMRNetwork.txt"));
fclose($fp); fclose($fp);
return $network; return $network;
} else {
return "";
}
} }
function getDMRMasterState() { function getDMRMasterState() {