check if isset folder_exists in move_product step

This commit is contained in:
Bero 2019-12-03 20:03:17 +01:00
parent 33d9f33fa3
commit df21888b59
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class WC_WCCOM_Site_Installer {
break;
case 'move_product':
$state_steps[ $product_id ]['installed_path'] = $result['destination'];
if ( $result[ self::$folder_exists ] ) {
if ( isset( $result[ self::$folder_exists ] ) ) {
$state_steps[ $product_id ]['warning'] = array(
'message' => self::$folder_exists,
'plugin_info' => self::get_plugin_info( $state_steps[ $product_id ]['installed_path'] ),