Add forgotten variable names
This commit is contained in:
parent
2d5a5db58b
commit
c843235fac
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ function getDMRNetwork() {
|
||||||
$network = '';
|
$network = '';
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
$fp = fopen($filename, 'r');
|
$fp = fopen($filename, 'r');
|
||||||
$network = fread($fp, filesize("config/DMRNetwork.txt"));
|
$network = fread($fp, filesize($filename));
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
return $network;
|
return $network;
|
||||||
|
@ -62,8 +62,8 @@ function getDMRNetwork2() {
|
||||||
$filename = '../config/DMRNetwork.txt';
|
$filename = '../config/DMRNetwork.txt';
|
||||||
$network = '';
|
$network = '';
|
||||||
if (file_exists($filename)) {
|
if (file_exists($filename)) {
|
||||||
$fp = fopen('../config/DMRNetwork.txt', 'r');
|
$fp = fopen($filename, 'r');
|
||||||
$network = fread($fp, filesize("../config/DMRNetwork.txt"));
|
$network = fread($fp, filesize($filename));
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
return $network;
|
return $network;
|
||||||
|
|
Loading…
Reference in a new issue