forked from extern/egroupware
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;
|
return $minutes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get state of timer
|
||||||
|
*
|
||||||
|
* @return array[]|void
|
||||||
|
*/
|
||||||
public static function timerState()
|
public static function timerState()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$state = [
|
$state = [
|
||||||
'overall' => [
|
'overall' => [
|
||||||
'offset' => 0,
|
'offset' => 0,
|
||||||
@ -190,6 +196,10 @@ class Events extends Api\Storage\Base
|
|||||||
}
|
}
|
||||||
return $state;
|
return $state;
|
||||||
}
|
}
|
||||||
|
catch (\Exception $e) {
|
||||||
|
_egw_log_exception($e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evaluate events
|
* Evaluate events
|
||||||
|
Loading…
Reference in New Issue
Block a user