Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2979364
D25875.1739844511.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
512 B
Referenced Files
None
Subscribers
None
D25875.1739844511.diff
View Options
diff --git a/src/view/form/control/AphrontFormDateControlValue.php b/src/view/form/control/AphrontFormDateControlValue.php
--- a/src/view/form/control/AphrontFormDateControlValue.php
+++ b/src/view/form/control/AphrontFormDateControlValue.php
@@ -307,6 +307,10 @@
}
private function getStandardDateFormat($date) {
+ // no value entered into the field at all
+ if (!$date) {
+ return null;
+ }
$colloquial = array(
'newyear' => 'January 1',
'valentine' => 'February 14',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 18, 02:08 (3 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1173996
Default Alt Text
D25875.1739844511.diff (512 B)
Attached To
Mode
D25875: PHP 8.1: Do not pass null to ctype_digit() in AphrontFormDateControlValue::getStandardDateFormat()
Attached
Detach File
Event Timeline
Log In to Comment