Module:Television ratings graph: Difference between revisions

Content deleted Content added
added scope for two header cells
protect against null value
Line 158:
elseif average == 0 or (average == 1 and args[k+1] ~= '-' and args[k+1] ~= nil) then
-- Include bar for viewer figure, do not include if averages are included and the next parameter is a new season marker
timeline['y'..season] = (timeline['y'..season] or '').. (timeline['y'..season] and ',' or '') .. (v ~= '' and v or 0)
-- Increment tracking variables