Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
4cc356db
Commit
4cc356db
authored
Feb 28, 2010
by
fantu
Browse files
Replace split (deprecated in php 5.3 and removed in php 6) with preg_split
parent
87a11b4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/cron_daily.php
View file @
4cc356db
...
...
@@ -92,7 +92,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
$out
=
''
;
$found
=
0
;
foreach
(
$lines
as
$line
)
{
list
(
$key
,
$value
)
=
split
(
"[
\t
= ]+"
,
$line
,
2
);
list
(
$key
,
$value
)
=
preg_
split
(
"
/
[
\t
= ]+
/
"
,
$line
,
2
);
if
(
$key
==
$varName
)
{
$out
.
=
$varName
.
" "
.
$varValue
.
"
\n
"
;
$found
=
1
;
...
...
Write
Preview
Supports
Markdown
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