Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -965,6 +965,11 @@ |
966 | 966 | $ret = array(); |
967 | 967 | |
968 | 968 | if ($dateopts) { |
| 969 | + if ( !in_array( 'default', $dateopts ) ) { |
| 970 | + $dateopts[] = 'default'; // Make sure default is always valid |
| 971 | + // Bug 19237 |
| 972 | + } |
| 973 | + |
969 | 974 | $idCnt = 0; |
970 | 975 | $epoch = '20010115161234'; # Wikipedia day |
971 | 976 | foreach( $dateopts as $key ) { |