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

git-svn-id: https://develop.svn.wordpress.org/trunk@6158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-22 23:14:38 +00:00
parent c93bdc05d1
commit 787122b1b8
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ function dbDelta($queries, $execute = true) {
}
// For every remaining index specified for the table
foreach($indices as $index) {
foreach ( (array) $indices as $index ) {
// Push a query line into $cqueries that adds the index to that table
$cqueries[] = "ALTER TABLE {$table} ADD $index";
$for_update[$table.'.'.$fieldname] = 'Added index '.$table.' '.$index;