fixed errors in upload

This commit is contained in:
Roland Gruber 2010-11-20 20:26:15 +00:00
parent a7b744475c
commit 2d66cdda3c
1 changed files with 2 additions and 2 deletions

View File

@ -431,12 +431,12 @@ class asteriskVoicemail extends baseModule implements passwordService {
if (!in_array("AsteriskVoiceMail", $partialAccounts[$i]['objectClass'])) $partialAccounts[$i]['objectClass'][] = "AsteriskVoiceMail";
//add context
if ($rawAccounts[$i][$ids['asteriskAccount_AstContext']] == "") {
if ($rawAccounts[$i][$ids['asteriskVoicemail_AstContext']] == "") {
// default value
$partialAccounts[$i]['AstContext'] = 'default';
}
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 {
$errMsg = $this->messages['AstContext'][2];