Make WordPress Core


Ignore:
Timestamp:
06/11/2010 03:01:51 AM (16 years ago)
Author:
nacin
Message:

Reset variables back to empty arrays instead of unsetting them in dbDelta. prevents a warning. props mitchoyoshitaka, fixes #13715.

File:
1 edited

Legend:

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

    r15187 r15210  
    14021402                        // If a table query exists for the database table...
    14031403                        if ( array_key_exists(strtolower($table), $cqueries) ) {
    1404                                 // Clear the field and index arrays
    1405                                 unset($cfields);
    1406                                 unset($indices);
     1404                                $cfields = $indices = array();
    14071405                                // Get all of the field names in the query from between the parens
    14081406                                preg_match("|\((.*)\)|ms", $cqueries[strtolower($table)], $match2);
Note: See TracChangeset for help on using the changeset viewer.