WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/05/2011 06:18:31 PM (11 years ago)
Author:
ryan
Message:

Avoid notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r17078 r17223  
    716716
    717717    $meta = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->postmeta WHERE meta_id = %d", $mid) );
     718    if ( empty($meta) )
     719        return false;
    718720    if ( is_serialized_string( $meta->meta_value ) )
    719721        $meta->meta_value = maybe_unserialize( $meta->meta_value );
Note: See TracChangeset for help on using the changeset viewer.