Open danFWD opened 7 years ago
At line 114 of the Gallery snippet, under certain circumstances, the $keyBits offset of 1 is undefined:
if (isset($keyBits[0]) && $keyBits[0] === 'thumbTpl') { if ($i = (int) $keyBits[1]) $nthTpls[$i] = $scriptProperties[$key]; }
The patch is to add one more conditional:
if (isset($keyBits[0]) && $keyBits[0] === 'thumbTpl' && isset($keyBits[1])) { if ($i = (int) $keyBits[1]) $nthTpls[$i] = $scriptProperties[$key]; }
I'm not sure what the underlying cause is, however, it didn't seem to adversely affect the output.
At line 114 of the Gallery snippet, under certain circumstances, the $keyBits offset of 1 is undefined:
The patch is to add one more conditional:
I'm not sure what the underlying cause is, however, it didn't seem to adversely affect the output.