Skip to content

Commit cef605f

Browse files
author
Oleksandr Gorkun
committed
MAGETWO-55858: Output escaping methods shouldn't be part of AbstractBlock
1 parent 59ff70d commit cef605f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,10 @@ public function getModuleName()
874874
*/
875875
public static function extractModuleName($className)
876876
{
877+
if (!$className) {
878+
return '';
879+
}
880+
877881
$namespace = substr(
878882
$className,
879883
0,

0 commit comments

Comments
 (0)