Skip to content

Commit

Permalink
Fix. Variables tokens check.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Apr 12, 2024
1 parent 0b3fb85 commit 642ff2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public function replaceVars($_key)
$this->tokens->searchForward($this->tokens[$var_first_declaration][3], ';') - 1
);

if ( isset($var_expression[2][1]) ) {
if ( isset($var_expression[2]) && isset($var_expression[2][1]) ) {
$this->tokens->current->value = trim($var_expression[2][1], '\'\"');
}
}
Expand Down

0 comments on commit 642ff2f

Please sign in to comment.