fix track
This commit is contained in:
parent
a6640e2056
commit
5bc089a94f
@ -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;
|
||||
if ($sender && file_exists (VAR_PERIOD.$sender))
|
||||
return trim (file (VAR_PERIOD.$sender)[0]);
|
||||
return DEFAULT_PERIOD;
|
||||
}
|
||||
|
||||
function period2seconds ($periodName) {
|
||||
|
Loading…
Reference in New Issue
Block a user