Skip to content

Commit c100316

Browse files
committed
PHP 8.1 fix.
Signed-off-by: Kevin Provance <[email protected]>
1 parent d9a58bb commit c100316

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redux-core/inc/classes/class-redux-functions-ex.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,12 @@ public static function pro_to_ext() {
588588
if ( $redux_pro_key && ! get_user_option( 'extendifysdk_redux_key_moved' ) ) {
589589
try {
590590
$extendify_user_state = get_user_meta( get_current_user_id(), 'extendifysdk_user_data' );
591+
if ( false === $extendify_user_state ) {
592+
$extendify_user_state = array();
593+
}
591594

592595
if ( ! isset( $extendify_user_state[0] ) ) {
593-
$extendify_user_state[0] = '{}';
596+
$extendify_user_state[0] = wp_json_encode( array() ); // '{}';
594597
}
595598

596599
$extendify_user_data = json_decode( $extendify_user_state[0], true );

0 commit comments

Comments
 (0)