mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Checks for task array
This commit is contained in:
parent
b8be425d4d
commit
81f67a0f1e
@ -86,6 +86,9 @@ class UpdateCalculatedFields
|
||||
|
||||
foreach(json_decode($task->time_log) as $log) {
|
||||
|
||||
if(!is_array($log))
|
||||
continue;
|
||||
|
||||
$start_time = $log[0];
|
||||
$end_time = $log[1] == 0 ? time() : $log[1];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user