From 0c80c55e91b3cbef4f8e62fd5f654db5f043f691 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 6 Dec 2003 19:15:38 +0000 Subject: - Fixed node_form() so it doesn't re-run node_validate() when there are no errors and it has already been checked. --- modules/node.module | 2 +- modules/node/node.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/node.module b/modules/node.module index 68fd4d864..97adb01cf 100644 --- a/modules/node.module +++ b/modules/node.module @@ -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); } diff --git a/modules/node/node.module b/modules/node/node.module index 68fd4d864..97adb01cf 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -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); } -- cgit v1.2.3