Skip to content

Commit 9c050fc

Browse files
committed
fixed warning about invalid offset and limit
1 parent 428a7c3 commit 9c050fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Db/WorkIntervalMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public function findLatestDays($user, $limitDays = 10, $startDay = 0, $limit = 1
6464
return $this->findEntities($sql, [$user,$limitDays,$startDay],$limit, $offset);
6565
}
6666

67-
public function findAllRunning($user){
67+
public function findAllRunning($user, $limit = 100, $offset = 0){
6868
$sql = 'SELECT * FROM `*PREFIX*timetracker_work_interval` where user_uid = ? and running = 1 order by id desc';
6969
return $this->findEntities($sql, [$user],$limit, $offset);
7070
}
7171

72-
public function stopAllRunning($user){
72+
public function stopAllRunning($user, $limit = 100, $offset = 0){
7373
$sql = 'update wi FROM `*PREFIX*timetracker_work_interval` wi set wi.running = 0 where user_uid = ? and running = 1';
7474
return $this->findEntities($sql, [$user],$limit, $offset);
7575
}

0 commit comments

Comments
 (0)