Plugin Directory

Changeset 577109


Ignore:
Timestamp:
07/25/2012 11:10:02 AM (13 years ago)
Author:
hel.io
Message:

Fixed a bug where an undefined array would be used when upgrading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • backup/trunk/backup.php

    r576649 r577109  
    311311
    312312        // Disable unwanted HTTP transports.
    313         foreach ( $this->http_transports as $t )
    314             if ( !in_array( $t, $this->options['enabled_transports'] ) )
    315                 add_filter( 'use_' . $t . '_transport', '__return_false' );
     313        if ( isset( $this->options['enabled_transports'] ) )
     314            foreach ( $this->http_transports as $t )
     315                if ( !in_array( $t, $this->options['enabled_transports'] ) )
     316                    add_filter( 'use_' . $t . '_transport', '__return_false' );
    316317
    317318        // Add 'Backup' to the Settings admin menu; save default metabox layout in the database.
Note: See TracChangeset for help on using the changeset viewer.