Define default variable values in cases when they can be undefined
This commit is contained in:
@ -5,6 +5,7 @@ class Html {
|
||||
|
||||
static function render($block) {
|
||||
$html = '';
|
||||
$text = '';
|
||||
|
||||
if(isset($block['params']['text']) && $block['params']['text']) {
|
||||
$text = html_entity_decode($block['params']['text'], ENT_QUOTES);
|
||||
|
Reference in New Issue
Block a user