Skip to content

Commit

Permalink
Update modResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic committed Jul 5, 2023
1 parent bb53fac commit 9407147
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,8 @@ public function toArrayTV($render = false)
$tvTPL = APIhelpers::getkey($this->tvTpl, $tpl, []);
foreach ($tvTPL as $item) {
if (isset($this->tvid[$item]) && !array_key_exists($this->tvid[$item], $out)) {
$value = $this->get($this->tvid[$item]);
$out[$this->tvid[$item]] = empty($value) ? $this->tvd[$this->tvid[$item]] : $value;
$out[$this->tvid[$item]] = $this->tvd[$this->tvid[$item]]['default'];
}

}
if ($render) {
foreach ($out as $key => $val) {
Expand Down

0 comments on commit 9407147

Please sign in to comment.