Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b9e8016f
Commit
b9e8016f
authored
May 26, 2003
by
Dries
Browse files
- Fixed validate problem. Patch by Ax.
parent
d8f78a7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
b9e8016f
...
...
@@ -887,10 +887,11 @@ function node_validate($node, &$error) {
** Validate the title field:
*/
$node
->
title
=
strip_tags
(
$node
->
title
);
if
(
isset
(
$node
->
title
)
&&
!
$node
->
title
)
{
$error
[
"title"
]
=
theme
(
"theme_error"
,
t
(
"You have to specify a valid title."
));
if
(
isset
(
$node
->
title
))
{
$node
->
title
=
strip_tags
(
$node
->
title
);
if
(
!
$node
->
title
)
{
$error
[
"title"
]
=
theme
(
"theme_error"
,
t
(
"You have to specify a valid title."
));
}
}
/*
...
...
modules/node/node.module
View file @
b9e8016f
...
...
@@ -887,10 +887,11 @@ function node_validate($node, &$error) {
** Validate the title field:
*/
$node
->
title
=
strip_tags
(
$node
->
title
);
if
(
isset
(
$node
->
title
)
&&
!
$node
->
title
)
{
$error
[
"title"
]
=
theme
(
"theme_error"
,
t
(
"You have to specify a valid title."
));
if
(
isset
(
$node
->
title
))
{
$node
->
title
=
strip_tags
(
$node
->
title
);
if
(
!
$node
->
title
)
{
$error
[
"title"
]
=
theme
(
"theme_error"
,
t
(
"You have to specify a valid title."
));
}
}
/*
...
...
Write
Preview
Supports
Markdown
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