mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:34:39 -04: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) {
|
foreach(json_decode($task->time_log) as $log) {
|
||||||
|
|
||||||
|
if(!is_array($log))
|
||||||
|
continue;
|
||||||
|
|
||||||
$start_time = $log[0];
|
$start_time = $log[0];
|
||||||
$end_time = $log[1] == 0 ? time() : $log[1];
|
$end_time = $log[1] == 0 ? time() : $log[1];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user