WordPress.org

Plugin Directory

Changeset 611602


Ignore:
Timestamp:
10/12/12 17:04:17 (19 months ago)
Author:
jblz
Message:

Jetpack: Make sure $tokens[$user_id] is set before referencing in Jetpack_Data::get_access_token() to avoid a PHP Notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/jetpack.php

    r611143 r611602  
    31933193                } 
    31943194            } 
    3195             if ( !$token = $tokens[$user_id] ) { 
     3195            if ( !isset( $tokens[$user_id] ) || !$token = $tokens[$user_id] ) { 
    31963196                return false; 
    31973197            } 
Note: See TracChangeset for help on using the changeset viewer.