[wp-trac] [WordPress Trac] #5047: dbDelta generates E_WARNING if no indices are defined

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 22 11:31:30 GMT 2007


#5047: dbDelta generates E_WARNING if no indices are defined
--------------------------+-------------------------------------------------
 Reporter:  arnee         |       Owner:  arnee
     Type:  defect        |      Status:  new  
 Priority:  normal        |   Milestone:  2.2.3
Component:  Optimization  |     Version:  2.3  
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
 dbDelta tries to loop through the array of indexes with foreach, but this
 array is NULL if no indexes are defined. Foreach with NULL => E_WARNING

 Solution: Check if $indices is an array

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5047>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list