mod_voicemail: Fix vm_prefs profile lock (MODAPP-417)

This commit is contained in:
Marc Olivier Chouinard 2010-04-14 21:36:41 -04:00
parent b4233082fa
commit 0f29f46172
1 changed files with 1 additions and 1 deletions

View File

@ -3353,7 +3353,7 @@ SWITCH_STANDARD_API(prefs_api_function)
stream->write_function(stream, "-ERR No such profile\n");
goto done;
}
if (!(profile = get_profile("default"))) {
if (!profile && !(profile = get_profile("default"))) {
stream->write_function(stream, "-ERR profile 'default' doesn't exist\n");
goto done;
}