Skip to content

Commit

Permalink
Expire task message update
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatacconi committed Apr 27, 2024
1 parent 51c9601 commit 97a4825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routes/api/task.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ static function (array $file) {
$interval_descr .= " from ".$row["life_time_from"];
}

if(!empty($row["life_time_to"])){
if(!empty($row["life_time_to"]) && !empty($row["life_time_from"])){
$interval_descr .= " to ".$row["life_time_to"];
}else{
$interval_descr .= " until ".$row["life_time_to"];
}

$interval_descr .= ")";
Expand Down

0 comments on commit 97a4825

Please sign in to comment.