Page MenuHomePhorge

D25599.1734744153.diff
No OneTemporary

D25599.1734744153.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
Sat, Dec 21, 01:22 (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020573
Default Alt Text
D25599.1734744153.diff (812 B)

Event Timeline