Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
superdav42 committed Dec 31, 2024
1 parent bfb57e5 commit 6c81873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/ui/class-template-previewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function template_previewer() {
/**
* Check if this is a site template
*/
if ($selected_template->get_type() !== Site_Type::SITE_TEMPLATE && !wu_request('customizer')) {
if (!$selected_template || ($selected_template->get_type() !== Site_Type::SITE_TEMPLATE && !wu_request('customizer'))) {

wp_die(__('This template is not available', 'wp-ultimo'));

Expand Down

0 comments on commit 6c81873

Please sign in to comment.