diff --git a/src/Jirafeau/a.php b/src/Jirafeau/a.php index 6280a4e..0590c83 100644 --- a/src/Jirafeau/a.php +++ b/src/Jirafeau/a.php @@ -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) {