do NOT stall whole UI if update / creation of egw_timesheet_events table is not yet run

This commit is contained in:
ralf 2022-10-03 10:11:33 +02:00
parent 7dc781acd5
commit 8890ba801b

View File

@ -152,8 +152,14 @@ class Events extends Api\Storage\Base
return $minutes;
}
/**
* Get state of timer
*
* @return array[]|void
*/
public static function timerState()
{
try {
$state = [
'overall' => [
'offset' => 0,
@ -190,6 +196,10 @@ class Events extends Api\Storage\Base
}
return $state;
}
catch (\Exception $e) {
_egw_log_exception($e);
}
}
/**
* Evaluate events