Plugin Directory

Changeset 894393


Ignore:
Timestamp:
04/16/2014 04:14:39 PM (12 years ago)
Author:
OneManOneLaptop
Message:

updating plugin uri

Location:
flux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flux/tags/0.0.3/plugin.php

    r894376 r894393  
    189189
    190190                // if the type is set to metabox
    191                 if ($metabox['#type'] == 'metabox' ) {
     191                if (is_array($metabox) && isset($metabox['#type']) && $metabox['#type'] == 'metabox' ) {
    192192
    193193                    // If its has been defined for post types
     
    894894            $meta_to_save = array();
    895895            foreach ($this->forms as $key => $form) {
    896                 if ($form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {
     896                if (is_array($form) && isset($form['#type']) && $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {
    897897                    foreach ($form['#post_types'] as $post_type) {
    898898                        if (is_object($post) && $post_type == $post->post_type) {
  • flux/trunk/plugin.php

    r894373 r894393  
    189189
    190190                // if the type is set to metabox
    191                 if ($metabox['#type'] == 'metabox' ) {
     191                if (is_array($metabox) && isset($metabox['#type']) && $metabox['#type'] == 'metabox' ) {
    192192
    193193                    // If its has been defined for post types
     
    894894            $meta_to_save = array();
    895895            foreach ($this->forms as $key => $form) {
    896                 if ($form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {
     896                if (is_array($form) && isset($form['#type']) && $form['#type'] == 'metabox' && isset($form['#post_types']) && is_array($form['#post_types'])) {
    897897                    foreach ($form['#post_types'] as $post_type) {
    898898                        if (is_object($post) && $post_type == $post->post_type) {
Note: See TracChangeset for help on using the changeset viewer.