Make WordPress Core


Ignore:
Timestamp:
05/05/2004 09:29:23 PM (22 years ago)
Author:
saxmatt
Message:

Some E_ALL fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-blog-header.php

    r1227 r1235  
    500500           
    501501            // Force subkeys to be array type:
    502             if (!is_array($post_meta_cache[$mpid]))
     502            if (!isset($post_meta_cache[$mpid]) || !is_array($post_meta_cache[$mpid]))
    503503                $post_meta_cache[$mpid] = array();
    504             if (!is_array($post_meta_cache[$mpid][$mkey]))
    505                 $post_meta_cache[$mpid][$mkey] = array();
     504            if (!isset($post_meta_cache[$mpid]["$mkey"]) || !is_array($post_meta_cache[$mpid]["$mkey"]))
     505                $post_meta_cache[$mpid]["$mkey"] = array();
    506506           
    507507            // Add a value to the current pid/key:
Note: See TracChangeset for help on using the changeset viewer.