Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
54d0948f
Commit
54d0948f
authored
May 07, 2007
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#133189
by Darren Oh: fixed empty date field test.
parent
8630e5ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
includes/form.inc
includes/form.inc
+1
-1
No files found.
includes/form.inc
View file @
54d0948f
...
...
@@ -1187,7 +1187,7 @@ function theme_date($element) {
*/
function
expand_date
(
$element
)
{
// Default to current date
if
(
!
isset
(
$element
[
'#value'
]))
{
if
(
empty
(
$element
[
'#value'
]))
{
$element
[
'#value'
]
=
array
(
'day'
=>
format_date
(
time
(),
'custom'
,
'j'
),
'month'
=>
format_date
(
time
(),
'custom'
,
'n'
),
'year'
=>
format_date
(
time
(),
'custom'
,
'Y'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment