Merged revisions 38761 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 3 Aug 2006 05:24:43 +0000 (05:24 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 3 Aug 2006 05:24:43 +0000 (05:24 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r38761 | tilghman | 2006-08-03 00:22:19 -0500 (Thu, 03 Aug 2006) | 2 lines

Bug 7648 - Checking wrong count for plurality on new messages for Dutch language

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38762 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 8fb0b96..3a2fa3f 100644 (file)
@@ -4546,7 +4546,7 @@ static int vm_intro_nl(struct ast_channel *chan,struct vm_state *vms)
                if (vms->newmessages) {
                        res = say_and_wait(chan, vms->newmessages, chan->language);
                        if (!res) {
-                               if (vms->oldmessages == 1)
+                               if (vms->newmessages == 1)
                                        res = ast_play_and_wait(chan, "vm-INBOXs");
                                else
                                        res = ast_play_and_wait(chan, "vm-INBOX");