summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-12-06 19:15:38 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2003-12-06 19:15:38 +0000
commit0c80c55e91b3cbef4f8e62fd5f654db5f043f691 (patch)
tree5024e6b6f0b9e63c0ce040b32b4471ab847f43cb /modules
parent1c45f07e574a78189adddc43fb5683f49cf73db2 (diff)
downloadbrdo-0c80c55e91b3cbef4f8e62fd5f654db5f043f691.tar.gz
brdo-0c80c55e91b3cbef4f8e62fd5f654db5f043f691.tar.bz2
- Fixed node_form() so it doesn't re-run node_validate() when there are no
errors and it has already been checked.
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module2
-rw-r--r--modules/node/node.module2
2 files changed, 2 insertions, 2 deletions
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);
}