mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
- Preserve existing times when working with an existing job schedule
- Preserve values of 0 (previously set to */1)
This commit is contained in:
parent
74d78f5dbe
commit
0044736e0f
@ -172,8 +172,11 @@ class asyncservice
|
||||
if ($this->debug) { echo "<p>n=$n, $u: isset(times[$u]="; print_r($times[$u]); echo ")=".(isset($times[$u])?'True':'False')."</p>\n"; }
|
||||
if (isset($times[$u]))
|
||||
{
|
||||
if(is_array($times[$u])) {
|
||||
$time = array_keys($times[$u]);
|
||||
} else {
|
||||
$time = explode(',',$times[$u]);
|
||||
|
||||
}
|
||||
$times[$u] = array();
|
||||
|
||||
foreach($time as $t)
|
||||
@ -195,7 +198,7 @@ class asyncservice
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($t == '*') $t = '*/1';
|
||||
if ((string)$t == '*') $t = '*/1';
|
||||
|
||||
list($one,$inc) = $arr = explode('/',$t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user