fixes warning on /var/www/include/functions.php on line 48
This commit is contained in:
parent
010d885f7b
commit
99687f6776
1 changed files with 9 additions and 4 deletions
|
@ -45,10 +45,15 @@ function setDMRNetwork($network) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDMRNetwork() {
|
function getDMRNetwork() {
|
||||||
|
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 getDMRNetwork2() {
|
function getDMRNetwork2() {
|
||||||
|
|
Loading…
Reference in a new issue