Skip to content

Commit 692b12c

Browse files
authored
Merge pull request #156 from Firesphere/master
Ensure templateName is a valid value
2 parents e237ff7 + d0e8bfb commit 692b12c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/Proxy/SSViewerProxy.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ protected static function trackTemplateUsed($templateName)
141141
*/
142142
protected static function normalizeTemplateName($templateName)
143143
{
144+
// Fallback for if the templateName is not a string or array (or anything, really)
145+
if (!$templateName) {
146+
$templateName = '';
147+
}
144148
return str_ireplace(BASE_PATH, '', $templateName);
145149
}
146150
}

0 commit comments

Comments
 (0)