WordPress.org

Make WordPress Core

Changeset 10735


Ignore:
Timestamp:
03/06/2009 05:09:37 PM (13 years ago)
Author:
ryan
Message:

Notice fix. Props ionfish. fixes #9292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r10726 r10735  
    504504        $query = array_shift($args);
    505505        // If args were passed as an array, move them up
    506         if ( is_array($args[0]) )
     506        if ( isset($args[0]) && is_array($args[0]) )
    507507            $args = $args[0];
    508508        $query = str_replace("'%s'", '%s', $query); // in case someone mistakenly already singlequoted it
Note: See TracChangeset for help on using the changeset viewer.