Skip to content

Commit

Permalink
Merge pull request #156 from Firesphere/master
Browse files Browse the repository at this point in the history
Ensure templateName is a valid value
  • Loading branch information
lekoala authored Apr 29, 2024
2 parents e237ff7 + d0e8bfb commit 692b12c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Proxy/SSViewerProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ protected static function trackTemplateUsed($templateName)
*/
protected static function normalizeTemplateName($templateName)
{
// Fallback for if the templateName is not a string or array (or anything, really)
if (!$templateName) {
$templateName = '';
}
return str_ireplace(BASE_PATH, '', $templateName);
}
}

0 comments on commit 692b12c

Please sign in to comment.