[wiaflos-devel] COMMIT - r260 - trunk/wiaflos/server
svn at linuxrulz.org
svn at linuxrulz.org
Sun Nov 9 05:43:19 GMT 2008
Author: nkukard
Date: 2008-11-09 05:43:19 +0000 (Sun, 09 Nov 2008)
New Revision: 260
Modified:
trunk/wiaflos/server/Reporting.pm
Log:
* Cannot add a undef amount
Modified: trunk/wiaflos/server/Reporting.pm
===================================================================
--- trunk/wiaflos/server/Reporting.pm 2008-11-08 17:56:30 UTC (rev 259)
+++ trunk/wiaflos/server/Reporting.pm 2008-11-09 05:43:19 UTC (rev 260)
@@ -527,7 +527,10 @@
if (defined($variables{$item})) {
# If its a float
if ($variables{$item}{'type'} eq "float") {
- $variables{$item}{'value'}->badd($value);
+ # Cannot add an undefined value
+ if (defined($value) && $value ne "") {
+ $variables{$item}{'value'}->badd($value);
+ }
} else {
wiaflos::server::templating::abort('api_variable_add','Variable type not supported: "'.defined($value) ? $value : ''.'"');
}
@@ -582,7 +585,7 @@
} else {
wiaflos::server::templating::abort('api_variable_get','Variable not defined: "'.defined($item) ? $item : ''.'"');
}
-
+print(STDERR "Get: $item => $res\n");
return $res;
}
More information about the wiaflos-devel
mailing list