Make WordPress Core

Changeset 6158


Ignore:
Timestamp:
09/22/2007 11:14:38 PM (18 years ago)
Author:
markjaquith
Message:

Cast to array in upgrade foreach(). props arnee. fixes #5047

File:
1 edited

Legend:

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

    r6126 r6158  
    10131013
    10141014                // For every remaining index specified for the table
    1015                 foreach($indices as $index) {
     1015                foreach ( (array) $indices as $index ) {
    10161016                    // Push a query line into $cqueries that adds the index to that table
    10171017                    $cqueries[] = "ALTER TABLE {$table} ADD $index";
Note: See TracChangeset for help on using the changeset viewer.