Skip to content

Commit

Permalink
Merge pull request #16 from FreePBX/bugfix/extension-voicemail
Browse files Browse the repository at this point in the history
Error 'Undefined variable ' when editing the extension number
  • Loading branch information
kguptasangoma authored Jun 5, 2024
2 parents 410b9c8 + 27b1cd0 commit 3ecd91f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,12 @@ function voicemail_configpageload() {

//loop through all options
$options="";
$vmops_attach = 'no';
$vmops_saycid = 'no';
$vmops_envelope = 'no';
$vmops_delete = 'no';
$vmops_imapuser = null;
$vmops_imappassword = null;
if ( isset($vmoptions) && is_array($vmoptions) ) {
$alloptions = array_keys($vmoptions);
if (isset($alloptions)) {
Expand All @@ -474,15 +480,6 @@ function voicemail_configpageload() {

}
extract($vmoptions, EXTR_PREFIX_ALL, "vmops");
} else {
$vmops_novmstar = 'no';
$vmops_passlogin = 'yes';
$vmops_attach = 'no';
$vmops_saycid = 'no';
$vmops_envelope = 'no';
$vmops_delete = 'no';
$vmops_imapuser = null;
$vmops_imappassword = null;
}

if (empty($vmcontext))
Expand Down

0 comments on commit 3ecd91f

Please sign in to comment.