Add fallback blank strings for status and timestamp, fix #29

This commit is contained in:
theopolisme 2014-11-27 19:48:10 -06:00
parent 53f80ef75e
commit 87bfca1b71

View File

@ -88,8 +88,8 @@
var name = template.target.toLowerCase();
if ( name === 'afc submission' ) {
submissionTemplates.push( {
status: AFCH.getAndDelete( template.params, '1').toLowerCase(),
timestamp: AFCH.getAndDelete( template.params, 'ts' ),
status: ( AFCH.getAndDelete( template.params, '1' ) || '' ).toLowerCase(),
timestamp: AFCH.getAndDelete( template.params, 'ts' ) || '',
params: template.params
} );
} else if ( name === 'afc comment' ) {