From: Andrew Garrett Date: Tue, 16 Jun 2009 20:53:59 +0000 (+0000) Subject: * Fix preferences for languages without a "default" entry in the date options. X-Git-Tag: 1.31.0-rc.0~41341 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=fe373536639bbc41ac9af63b5cdafa563c759a2f;p=lhc%2Fweb%2Fwiklou.git * Fix preferences for languages without a "default" entry in the date options. --- 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 ) {