Page MenuHomePhorge

D25599.1734729862.diff
No OneTemporary

D25599.1734729862.diff

diff --git a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
--- a/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
+++ b/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
@@ -110,14 +110,14 @@
}
$min_str = idx($value, 'min', '');
- if (strlen($min_str)) {
+ if (phutil_nonempty_string($min_str)) {
$min = PhabricatorTime::parseLocalTime($min_str, $viewer);
} else {
$min = null;
}
$max_str = idx($value, 'max', '');
- if (strlen($max_str)) {
+ if (phutil_nonempty_string($max_str)) {
$max = PhabricatorTime::parseLocalTime($max_str, $viewer);
} else {
$max = null;

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 21:24 (13 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020573
Default Alt Text
D25599.1734729862.diff (812 B)

Event Timeline