aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-20 02:42:49 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-20 02:42:49 +0000
commit0a527a1840c36814754d60e1c230b850a8a3cf00 (patch)
tree0a0608d8ecbbd4dd91848b8bf4a6866a6b2e1ffe /apps
parente4808afab3e9c979584bf8d40ef32d53d2a0dddb (diff)
Missing curly braces. Oops. (Reported by snuffy via IRC)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79998 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index be8b8c349..fd6fcd3ea 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -2864,11 +2864,12 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_
if (ast_streamfile(chan, prefile, chan->language) > -1)
res = ast_waitstream(chan, ecodes);
#ifdef ODBC_STORAGE
- if(success == -1)
- /*We couldn't retrieve the file from the database, but we found it on the file system. Let's put it in the database*/
- if(option_debug)
+ if (success == -1) {
+ /* We couldn't retrieve the file from the database, but we found it on the file system. Let's put it in the database. */
+ if (option_debug)
ast_log(LOG_DEBUG, "Greeting not retrieved from database, but found in file storage. Inserting into database\n");
store_file(prefile, vmu->mailbox, vmu->context, -1);
+ }
#endif
} else {
if (option_debug)