mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-20 12:58:46 +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 ($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 (isset($times[$u]))
|
||||||
{
|
{
|
||||||
|
if(is_array($times[$u])) {
|
||||||
|
$time = array_keys($times[$u]);
|
||||||
|
} else {
|
||||||
$time = explode(',',$times[$u]);
|
$time = explode(',',$times[$u]);
|
||||||
|
}
|
||||||
$times[$u] = array();
|
$times[$u] = array();
|
||||||
|
|
||||||
foreach($time as $t)
|
foreach($time as $t)
|
||||||
@ -195,7 +198,7 @@ class asyncservice
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($t == '*') $t = '*/1';
|
if ((string)$t == '*') $t = '*/1';
|
||||||
|
|
||||||
list($one,$inc) = $arr = explode('/',$t);
|
list($one,$inc) = $arr = explode('/',$t);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user