Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Feb 17, 2025
1 parent f00752e commit facf2c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Framework/Controller/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ public function _init() {
self::MENU_SLUG,
self::SETTINGS_NAME,
function ( $option ) {
$current_license_key = static::get_option( 'license-key' );
$posted_license_key = isset( $option['license-key'] ) ? $option['license-key'] : false;
$posted_license_key = trim( $posted_license_key );
$option['license-key'] = static::SAVED_VALUE === $posted_license_key
$current_license_key = static::get_option( 'license-key' );
$posted_license_key = isset( $option['license-key'] ) ? $option['license-key'] : false;
$posted_license_key = trim( $posted_license_key );
$option['license-key'] = static::SAVED_VALUE === $posted_license_key
? $current_license_key
: $posted_license_key;

Expand Down

0 comments on commit facf2c6

Please sign in to comment.