mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
do NOT stall whole UI if update / creation of egw_timesheet_events table is not yet run
This commit is contained in:
parent
7dc781acd5
commit
8890ba801b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user