fix track

This commit is contained in:
François 2022-02-19 09:49:41 +01:00
parent a6640e2056
commit 5bc089a94f

View File

@ -181,10 +181,7 @@ function rmSenderTrack ($sender) {
unlink (VAR_TRACKS.$sender);
}
function getSenderTrack ($sender) {
if (!$sender)
return false;
return false;
//return file_exists (VAR_TRACKS.$sender);
return $sender && file_exists (VAR_TRACKS.$sender);
}
// ========================================
@ -205,9 +202,9 @@ function rmSenderPeriod ($sender) {
unlink (VAR_PERIOD.$sender);
}
function getSenderPeriod ($sender) {
if (!$sender || !file_exists (VAR_PERIOD.$sender))
return DEFAULT_PERIOD;
return trim (file (VAR_PERIOD.$sender)[0]);
if ($sender && file_exists (VAR_PERIOD.$sender))
return trim (file (VAR_PERIOD.$sender)[0]);
return DEFAULT_PERIOD;
}
function period2seconds ($periodName) {