Skip to content

Commit

Permalink
Fix array offset
Browse files Browse the repository at this point in the history
  • Loading branch information
xacobofg committed Oct 28, 2020
1 parent 61766e6 commit c73216e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions inc/task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,11 @@ static function getTask($user_id) {
]
];
$req=$DB->request($query);
$row=$req->next();
return $row['tasks_id'];
if($row=$req->next()){
return $row['tasks_id'];
}else{
return 0;
}
}

static function getActualBegin($task_id) {
Expand Down

0 comments on commit c73216e

Please sign in to comment.