Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
isp
ISPConfig 3
Commits
6d15c0f3
Commit
6d15c0f3
authored
Jan 18, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-2' into 'master'
Update cron.inc.php See merge request
ispconfig/ispconfig3!710
parents
bc3ff228
19cf8869
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
server/lib/classes/cron.inc.php
server/lib/classes/cron.inc.php
+4
-3
No files found.
server/lib/classes/cron.inc.php
View file @
6d15c0f3
...
...
@@ -264,9 +264,10 @@ class cron {
if
(
!
array_key_exists
(
$sField
,
$this
->
_aValidValues
))
return
false
;
reset
(
$this
->
_aValidValues
[
$sField
]);
while
((
$cur
=
each
(
$this
->
_aValidValues
[
$sField
]))
!==
false
)
{
if
(
$bIncludeCurrent
==
true
&&
$cur
[
'value'
]
>=
$iValue
)
return
$cur
[
'value'
];
elseif
(
$cur
[
'value'
]
>
$iValue
)
return
$cur
[
'value'
];
foreach
(
$this
->
_aValidValues
[
$sField
]
as
$key
=>
$value
)
{
if
(
$bIncludeCurrent
==
true
&&
$value
>=
$iValue
)
return
$value
;
elseif
(
$value
>
$iValue
)
return
$value
;
}
return
reset
(
$this
->
_aValidValues
[
$sField
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment