Skip to content

Commit

Permalink
Fix warning when license key isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
tarecord committed Sep 12, 2024
1 parent c5433cb commit ec0416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/admin/fields/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class="regular-text stellarwp-uplink__settings-field"
Config::get_container()->get( Authorize_Button_Controller::class )->render( [
'slug' => $field->get_slug(),
'domain' => get_site_url(),
'license' => $resource->license_key,
'license' => $resource->license_key ?? '',
] );
} catch ( Throwable $e ) {
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
Expand Down

0 comments on commit ec0416c

Please sign in to comment.