WordPress.org

Plugin Directory

Changeset 635483


Ignore:
Timestamp:
12/07/12 18:39:34 (17 months ago)
Author:
sc0ttkclark
Message:

Pods 2.1 hotfix for Issue 838

Location:
pods
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pods/tags/2.1/classes/PodsInit.php

    r635472 r635483  
    623623     */ 
    624624    public static function object_label_fix ( $args, $type = 'post_type' ) { 
    625         if ( !isset( $args[ 'labels' ] ) ) 
     625        if ( empty( $args ) || !is_array( $args ) ) 
     626            $args = array(); 
     627 
     628        if ( !isset( $args[ 'labels' ] ) || !is_array( $args[ 'labels' ] ) ) 
    626629            $args[ 'labels' ] = array(); 
    627630 
  • pods/trunk/classes/PodsInit.php

    r635470 r635483  
    623623     */ 
    624624    public static function object_label_fix ( $args, $type = 'post_type' ) { 
    625         if ( !isset( $args[ 'labels' ] ) ) 
     625        if ( empty( $args ) || !is_array( $args ) ) 
     626            $args = array(); 
     627 
     628        if ( !isset( $args[ 'labels' ] ) || !is_array( $args[ 'labels' ] ) ) 
    626629            $args[ 'labels' ] = array(); 
    627630 
Note: See TracChangeset for help on using the changeset viewer.