Commit 0c80c55e authored by Kjartan's avatar Kjartan

- Fixed node_form() so it doesn't re-run node_validate() when there are no

  errors and it has already been checked.
parent 1c45f07e
......@@ -1103,7 +1103,7 @@ function node_form($edit, $error = NULL) {
** Validate the node:
*/
if (!$error) {
if ($error === NULL) {
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
}
......
......@@ -1103,7 +1103,7 @@ function node_form($edit, $error = NULL) {
** Validate the node:
*/
if (!$error) {
if ($error === NULL) {
/* Only validate if we don't already know the errors. */
$edit = node_validate($edit, $error);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment