comparison modules/mod_retrieve.js @ 54:c2c9c06d6e9d

Fix problems with unneeded text nodes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 06 May 2011 17:51:15 +0200
parents 0d3f18bb1d36
children addbf6bbfaa8
comparison
equal deleted inserted replaced
53:ca17b63f561f 54:c2c9c06d6e9d
98 if (affil != 'super-owner' && affil != 'owner' && affil != 'publisher' && affil != 'member') 98 if (affil != 'super-owner' && affil != 'owner' && affil != 'publisher' && affil != 'member')
99 return makeError(response, errors.pub.publish.insufficient_privileges.n); 99 return makeError(response, errors.pub.publish.insufficient_privileges.n);
100 } 100 }
101 101
102 var item = []; 102 var item = [];
103 for (var i=0; i<request.children.length; i++) { 103 for (var i=0; i<request.tags.length; i++) {
104 var j = request.children[i]; 104 var j = request.tags[i];
105 if (j.name == 'item' && j.attr['id'] && j.attr['id'] != '') 105 if (j.name == 'item' && j.attr['id'] && j.attr['id'] != '')
106 item.push(j.attr['id']); 106 item.push(j.attr['id']);
107 } 107 }
108 108
109 response.c('pubsub', {xmlns: NS.PUBSUB}); 109 response.c('pubsub', {xmlns: NS.PUBSUB});