[interchange] * Fix problem where we were stepping on '%' in message even when

Mike Heins interchange-cvs at icdevgroup.org
Sat Sep 12 16:02:40 UTC 2015


commit 576b762f3870c4ccfdece85239b6ed302f36f2d4
Author: Mike Heins <mike at perusion.com>
Date:   Sat Sep 12 12:01:58 2015 -0400

    * Fix problem where we were stepping on '%' in message even when
      there were no parameters submitted for substitution in sprintf.

 code/SystemTag/warnings.coretag |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/code/SystemTag/warnings.coretag b/code/SystemTag/warnings.coretag
index 01af154..b2a5129 100644
--- a/code/SystemTag/warnings.coretag
+++ b/code/SystemTag/warnings.coretag
@@ -19,7 +19,13 @@ sub {
 
 	if($message) {
 		my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}];
-		push_warning($message, @$param);
+        if($opt->{param}) { 
+            my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}];
+            push_warning($message, @$param);
+        }
+        else {
+            push_warning($message);
+        }
 		return unless $opt->{show};
 	}
 



More information about the interchange-cvs mailing list