WordPress.org

Plugin Directory

Changeset 636200


Ignore:
Timestamp:
12/09/12 17:20:00 (16 months ago)
Author:
markoheijnen
Message:

Only unset() after we have confirmed we are not dealing with a WP_Error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gmagick/trunk/editors/gmagick.php

    r636087 r636200  
    236236                $this->image->destroy(); 
    237237                $this->image = null; 
    238                 unset( $resized['path'] ); 
    239  
    240                 if ( ! is_wp_error( $resized ) && $resized ) 
     238 
     239                if ( ! is_wp_error( $resized ) ) { 
     240                    unset( $resized['path'] ); 
    241241                    $metadata[$size] = $resized; 
     242                } 
    242243            } 
    243244 
Note: See TracChangeset for help on using the changeset viewer.