From e6768adf1b554cbd90b87c1f49f407916e22efeb Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 20 Aug 2007 02:42:49 +0000 Subject: [PATCH] Missing curly braces. Oops. (Reported by snuffy via IRC) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79998 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index be8b8c349a..fd6fcd3eaa 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)