|
|
@@ -1130,36 +1130,37 @@ class Zend_Locale_Format
|
|
|
$options = self::_checkOptions($options) + self::$_options;
|
|
|
|
|
|
// day expected but not parsed
|
|
|
- if ((iconv_strpos($options['date_format'], 'd', 0, 'UTF-8') !== false) and (!isset($date['day']) or ($date['day'] == ""))) {
|
|
|
+ if ((iconv_strpos($options['date_format'], 'd', 0, 'UTF-8') !== false) and (!isset($date['day']) or ($date['day'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// month expected but not parsed
|
|
|
- if ((iconv_strpos($options['date_format'], 'M', 0, 'UTF-8') !== false) and (!isset($date['month']) or ($date['month'] == ""))) {
|
|
|
+ if ((iconv_strpos($options['date_format'], 'M', 0, 'UTF-8') !== false) and (!isset($date['month']) or ($date['month'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// year expected but not parsed
|
|
|
if (((iconv_strpos($options['date_format'], 'Y', 0, 'UTF-8') !== false) or
|
|
|
- (iconv_strpos($options['date_format'], 'y', 0, 'UTF-8') !== false)) and (!isset($date['year']) or ($date['year'] == ""))) {
|
|
|
+ (iconv_strpos($options['date_format'], 'y', 0, 'UTF-8') !== false)) and (!isset($date['year']) or ($date['year'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// second expected but not parsed
|
|
|
- if ((iconv_strpos($options['date_format'], 's', 0, 'UTF-8') !== false) and (!isset($date['second']) or ($date['second'] == ""))) {
|
|
|
+ if ((iconv_strpos($options['date_format'], 's', 0, 'UTF-8') !== false) and (!isset($date['second']) or ($date['second'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// minute expected but not parsed
|
|
|
- if ((iconv_strpos($options['date_format'], 'm', 0, 'UTF-8') !== false) and (!isset($date['minute']) or ($date['minute'] == ""))) {
|
|
|
+ if ((iconv_strpos($options['date_format'], 'm', 0, 'UTF-8') !== false) and (!isset($date['minute']) or ($date['minute'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
// hour expected but not parsed
|
|
|
if (((iconv_strpos($options['date_format'], 'H', 0, 'UTF-8') !== false) or
|
|
|
- (iconv_strpos($options['date_format'], 'h', 0, 'UTF-8') !== false)) and (!isset($date['hour']) or ($date['hour'] == ""))) {
|
|
|
+ (iconv_strpos($options['date_format'], 'h', 0, 'UTF-8') !== false)) and (!isset($date['hour']) or ($date['hour'] === ""))) {
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|