Skip to content

Commit

Permalink
FREEPBX17-923
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanthcode4 committed Jun 25, 2024
1 parent 6a954ff commit c00c0e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Voicemail.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,27 +559,27 @@ public function addMailbox($mailbox, $settings, $cached = true) {
$vmoptions['imapuser'] = $settings['imapuser'];
$vmoptions['imappassword'] = $settings['imappassword'];
}
if(isset($settings['passlogin'])) {
if(isset($settings['passlogin']) && $settings['passlogin']!='no') {
$vmoption = explode("=",$settings['passlogin']);
$settings['passlogin'] = $vmoption[1];
}

if(isset($settings['novmstar'])) {
if(isset($settings['novmstar'])&& $settings['novmstar']!='no') {
$vmoption = explode("=",$settings['novmstar']);
$settings['novmstar'] = $vmoption[1];
}

if(isset($settings['attach'])) {
if(isset($settings['attach']) && $settings['attach']!='no') {
$vmoption = explode("=",$settings['attach']);
$vmoptions['attach'] = $vmoption[1];
}

if(isset($settings['saycid'])) {
if(isset($settings['saycid']) && $settings['saycid']!='no') {
$vmoption = explode("=",$settings['saycid']);
$vmoptions['saycid'] = $vmoption[1];
}

if(isset($settings['envelope'])) {
if(isset($settings['envelope']) && $settings['envelope']!='no') {
$vmoption = explode("=",$settings['envelope']);
$vmoptions['envelope'] = $vmoption[1];
}
Expand Down

0 comments on commit c00c0e3

Please sign in to comment.