fixed errors in upload
This commit is contained in:
parent
a7b744475c
commit
2d66cdda3c
|
@ -431,12 +431,12 @@ class asteriskVoicemail extends baseModule implements passwordService {
|
||||||
if (!in_array("AsteriskVoiceMail", $partialAccounts[$i]['objectClass'])) $partialAccounts[$i]['objectClass'][] = "AsteriskVoiceMail";
|
if (!in_array("AsteriskVoiceMail", $partialAccounts[$i]['objectClass'])) $partialAccounts[$i]['objectClass'][] = "AsteriskVoiceMail";
|
||||||
|
|
||||||
//add context
|
//add context
|
||||||
if ($rawAccounts[$i][$ids['asteriskAccount_AstContext']] == "") {
|
if ($rawAccounts[$i][$ids['asteriskVoicemail_AstContext']] == "") {
|
||||||
// default value
|
// default value
|
||||||
$partialAccounts[$i]['AstContext'] = 'default';
|
$partialAccounts[$i]['AstContext'] = 'default';
|
||||||
}
|
}
|
||||||
elseif (get_preg($rawAccounts[$i][$ids['asteriskVoicemail_AstContext']], 'realname')) {
|
elseif (get_preg($rawAccounts[$i][$ids['asteriskVoicemail_AstContext']], 'realname')) {
|
||||||
$partialAccounts[$i]['AstContext'] = $rawAccounts[$i][$ids['asteriskAccount_AstContext']];
|
$partialAccounts[$i]['AstContext'] = $rawAccounts[$i][$ids['asteriskVoicemail_AstContext']];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$errMsg = $this->messages['AstContext'][2];
|
$errMsg = $this->messages['AstContext'][2];
|
||||||
|
|
Loading…
Reference in New Issue