File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -523,9 +523,9 @@ public function configure_mailman($status = 'insert') {
523523 $ lines = explode ("\n" , $ old_file );
524524 foreach ($ lines as $ line )
525525 {
526- if (strlen ($ line ) && substr ($ line , 0 , 1 ) != '# ' )
526+ if (trim ($ line ) != '' && substr ($ line , 0 , 1 ) != '# ' )
527527 {
528- list ($ key , $ value ) = explode ("= " , $ line );
528+ @ list ($ key , $ value ) = @ explode ("= " , $ line );
529529 if (!empty ($ value ))
530530 {
531531 $ key = rtrim ($ key );
@@ -540,13 +540,15 @@ public function configure_mailman($status = 'insert') {
540540 // create virtual_domains list
541541 $ domainAll = $ this ->db ->queryAllRecords ("SELECT domain FROM mail_mailinglist GROUP BY domain " );
542542
543+ if (is_array ($ domainAll )) {
543544 foreach ($ domainAll as $ domain )
544545 {
545546 if ($ domainAll [0 ]['domain ' ] == $ domain ['domain ' ])
546547 $ virtual_domains .= "' " .$ domain ['domain ' ]."' " ;
547548 else
548549 $ virtual_domains .= ", ' " .$ domain ['domain ' ]."' " ;
549550 }
551+ }
550552 }
551553 else
552554 $ virtual_domains = "' ' " ;
You can’t perform that action at this time.
0 commit comments