From 09c03667a8f3ff917ad0bc283fd79131a3b038ac Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Sun, 21 Oct 2012 22:53:02 -0500 Subject: [PATCH] FS-4721 --resolve --- src/mod/say/mod_say_de/mod_say_de.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mod/say/mod_say_de/mod_say_de.c b/src/mod/say/mod_say_de/mod_say_de.c index 1c1871732c..b38f02a798 100644 --- a/src/mod/say/mod_say_de/mod_say_de.c +++ b/src/mod/say/mod_say_de/mod_say_de.c @@ -97,12 +97,14 @@ static switch_status_t play_group(switch_say_method_t method, switch_say_gender_ if (b) { if (b > 1) { /*german nominativ for "one" in numbers like 21, 171, 4591 is flexed, 2-9 are not*/ - if ( c == 1 ) { - say_file("digits/s-1.wav"); - } else { - say_file("digits/%d.wav", c); - } - say_file("currency/and.wav"); + if (c > 0) { + if ( c == 1 ) { + say_file("digits/s-1.wav"); + } else { + say_file("digits/%d.wav", c); + } + say_file("currency/and.wav"); + } if (method == SSM_COUNTED) { say_file("digits/h-%d0.wav", b); } else {