Skip to content

Commit

Permalink
Simplify code.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 1, 2023
1 parent 81dc593 commit aeeccb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ if ($availCode == 'od_code_login_for_avail') {
$this->extraControls = $extraControls;
} //end if avail

if (!empty($previews) && $previews->url) {
if (!empty($previews->url)) {
$this->previewOverride = "<a href=\"{$previews->url}\" target=\"_blank\" class=\"btn btn-primary\">Sample</a>";
}
echo $this->render('RecordDriver/DefaultRecord/core.phtml');

0 comments on commit aeeccb5

Please sign in to comment.