Add forgotten variable names

This commit is contained in:
phl0 2017-01-10 21:16:22 +01:00
parent 2d5a5db58b
commit c843235fac
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -52,7 +52,7 @@ function getDMRNetwork() {
$network = '';
if (file_exists($filename)) {
$fp = fopen($filename, 'r');
$network = fread($fp, filesize("config/DMRNetwork.txt"));
$network = fread($fp, filesize($filename));
fclose($fp);
}
return $network;
@ -62,8 +62,8 @@ function getDMRNetwork2() {
$filename = '../config/DMRNetwork.txt';
$network = '';
if (file_exists($filename)) {
$fp = fopen('../config/DMRNetwork.txt', 'r');
$network = fread($fp, filesize("../config/DMRNetwork.txt"));
$fp = fopen($filename, 'r');
$network = fread($fp, filesize($filename));
fclose($fp);
}
return $network;