Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
8fe9ab67
Commit
8fe9ab67
authored
Jul 22, 2011
by
tbrehm
Browse files
Fixed PHP notices in mailman installer.
parent
deff20f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
8fe9ab67
...
...
@@ -523,9 +523,9 @@ class installer_base {
$lines
=
explode
(
"
\n
"
,
$old_file
);
foreach
(
$lines
as
$line
)
{
if
(
s
tr
len
(
$line
)
&&
substr
(
$line
,
0
,
1
)
!=
'#'
)
if
(
tr
im
(
$line
)
!=
''
&&
substr
(
$line
,
0
,
1
)
!=
'#'
)
{
list
(
$key
,
$value
)
=
explode
(
"="
,
$line
);
@
list
(
$key
,
$value
)
=
@
explode
(
"="
,
$line
);
if
(
!
empty
(
$value
))
{
$key
=
rtrim
(
$key
);
...
...
@@ -540,6 +540,7 @@ class installer_base {
// create virtual_domains list
$domainAll
=
$this
->
db
->
queryAllRecords
(
"SELECT domain FROM mail_mailinglist GROUP BY domain"
);
if
(
is_array
(
$domainAll
))
{
foreach
(
$domainAll
as
$domain
)
{
if
(
$domainAll
[
0
][
'domain'
]
==
$domain
[
'domain'
])
...
...
@@ -547,6 +548,7 @@ class installer_base {
else
$virtual_domains
.
=
", '"
.
$domain
[
'domain'
]
.
"'"
;
}
}
}
else
$virtual_domains
=
"' '"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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