Opened 17 years ago
Closed 17 years ago
#5047 closed defect (bug) (fixed)
dbDelta generates E_WARNING if no indices are defined
Reported by: | arnee | Owned by: | arnee |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | Optimization | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
if(is_array($indices)) Diff