From f02f4d8c9807dc520851849e216f79fce6d47f77 Mon Sep 17 00:00:00 2001 From: Dominique Hazael-Massieux Date: Fri, 6 Nov 2015 08:43:29 +0100 Subject: [PATCH] Apply "missing name" fix to authors as well --- js/w3c/headers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/w3c/headers.js b/js/w3c/headers.js index de0e99dfc9..5e8b9dd88c 100644 --- a/js/w3c/headers.js +++ b/js/w3c/headers.js @@ -390,8 +390,10 @@ define( if (conf.editors) { conf.editors.forEach(peopCheck); } - $.each(conf.authors || [], peopCheck); - conf.multipleEditors = conf.editors.length > 1; + if (conf.authors) { + conf.authors.forEach(peopCheck); + } + conf.multipleEditors = conf.editors && conf.editors.length > 1; conf.multipleAuthors = conf.authors && conf.authors.length > 1; $.each(conf.alternateFormats || [], function (i, it) { if (!it.uri || !it.label) msg.pub("error", "All alternate formats must have a uri and a label.");