Skip to content
Browse files

Fixed problem when key was 0

  • Loading branch information...
1 parent acba5d3 commit c1108ff8a91b8438c91f0cf08dd3fcf454873f49 @gomfunkel committed Aug 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mailchimp/helpers.js
View
4 lib/mailchimp/helpers.js
@@ -8,7 +8,9 @@
var serialize = module.exports.serialize = function (value, key) {
var output;
- key || (key = '');
+
+ if (!key && key !== 0)
+ key = '';
if (Array.isArray(value)) {
output = [];

0 comments on commit c1108ff

Please sign in to comment.
Something went wrong with that request. Please try again.