Skip to content

Commit

Permalink
Merge pull request #1452 from tripal/tv4g1-issue1450-deprecated-str_r…
Browse files Browse the repository at this point in the history
…eplace

Tv4g1 issue1450 deprecated str replace
  • Loading branch information
dsenalik committed Mar 27, 2023
2 parents 1e1c407 + f5aeb87 commit f2d9410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tripal/src/Entity/TripalEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public function replaceTokens($string, $cache = []) {
$string = str_replace('[' . $token . ']', '', $string);
}
else {
$string = str_replace('[' . $token . ']', $value, $string);
$string = str_replace('[' . $token . ']', $value ?? '', $string);
}
}

Expand Down

0 comments on commit f2d9410

Please sign in to comment.