REST gateway now matches the JSON gateway with the status wrapper
[Evergreen.git] / Open-ILS / src / apachemods / json_xml.c
index 302f1ee..783e1b5 100644 (file)
@@ -115,9 +115,9 @@ void _rest_xml_output(growing_buffer* buf, jsonObject* obj, char * obj_class, in
                double x = jsonObjectGetNumber(obj);
                if (notag) {
                        if (x == (int)x)
-                               buffer_fadd(buf,"%d",tag, (int)x,tag);
+                               buffer_fadd(buf,"%d",(int)x);
                        else
-                               buffer_fadd(buf,"%lf",tag, x,tag);
+                               buffer_fadd(buf,"%lf",x);
                } else {
                        if (x == (int)x)
                                buffer_fadd(buf,"<%s>%d</%s>",tag, (int)x,tag);