Changeset 6158

Show
Ignore:
Timestamp:
09/22/07 23:14:38 (1 year ago)
Author:
markjaquith
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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";