WordPress.org

Plugin Directory

Changeset 682170


Ignore:
Timestamp:
03/15/13 06:39:28 (13 months ago)
Author:
alexdunae
Message:

Check for object property existence, not just null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-smushit/trunk/wp-smushit.php

    r682166 r682170  
    189189        return array($file, __('No savings', WP_SMUSHIT_DOMAIN)); 
    190190 
    191     if ( !$data->dest ) { 
     191    if ( !isset($data->dest) ) { 
    192192        $err = ($data->error ? 'Smush.it error: ' . $data->error : 'unknown error'); 
    193193        $err .= " while processing <span class='code'>$file_url</span> (<span class='code'>$file_path</span>)"; 
Note: See TracChangeset for help on using the changeset viewer.