From fe373536639bbc41ac9af63b5cdafa563c759a2f Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Tue, 16 Jun 2009 20:53:59 +0000 Subject: [PATCH] * Fix preferences for languages without a "default" entry in the date options. --- includes/Preferences.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/Preferences.php b/includes/Preferences.php index b73249c8fa..96f49b3382 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -965,6 +965,11 @@ class Preferences { $ret = array(); if ($dateopts) { + if ( !in_array( 'default', $dateopts ) ) { + $dateopts[] = 'default'; // Make sure default is always valid + // Bug 19237 + } + $idCnt = 0; $epoch = '20010115161234'; # Wikipedia day foreach( $dateopts as $key ) { -- 2.20.1