Skip to content

Commit

Permalink
Merge pull request #2555 from Phpvarious/patch-14
Browse files Browse the repository at this point in the history
Update utils.inc.php
  • Loading branch information
Sekiro-kost committed Apr 22, 2024
2 parents ce76783 + 3eb8560 commit b5f28e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/php/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function template_replace($_array, $_subject) {
$_array['#uid#'] = '';
}
if (strpos($_array['#uid#'], 'eqLogic') !== false && (!isset($_array['#calledFrom#']) || $_array['#calledFrom#'] != 'eqLogic')) {
if (is_object($eqLogic = eqLogic::byId($_array['#id#'])) && $eqLogic->getDisplay('widgetTmpl', 1) == 0) {
if (is_object($eqLogic = eqLogic::byId($_array['#id#'])) && ($eqLogic->getDisplay('widgetTmpl', 1) == 0 || $_subject == '')) {
$reflected = new ReflectionClass($eqLogic->getEqType_name());
$method = $reflected->getParentClass()->getMethod('toHtml');
return $method->invokeArgs($eqLogic, [$_array['#version#']]);
Expand Down

0 comments on commit b5f28e1

Please sign in to comment.