diff --git a/include/functions.php b/include/functions.php
index 03e0e6d..fcbe627 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -279,11 +279,11 @@ function getActualMode($metaLastHeard, $mmdvmconfigs) {
function getDSTARLinks() {
// returns link-states of all D-Star-modules
- if (filesize(LINKLOGPATH) == 0) {
+ if (filesize(LINKLOGPATH."/Links.log") == 0) {
return "not linked";
}
$out = "
";
- if ($linkLog = fopen(LINKLOGPATH,'r')) {
+ if ($linkLog = fopen(LINKLOGPATH."/Links.log",'r')) {
while ($linkLine = fgets($linkLog)) {
$linkDate = " ";
$protocol = " ";
diff --git a/setup.php b/setup.php
index b8d3aee..fd60924 100644
--- a/setup.php
+++ b/setup.php
@@ -22,7 +22,7 @@ include "include/tools.php";
if (!file_exists('./config')) {
mkdir('./config', 0777, true);
}
- $configfile = fopen("config/config.php", w);
+ $configfile = fopen("config/config.php", 'w');
fwrite($configfile,"