diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-12-06 19:15:38 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2003-12-06 19:15:38 +0000 |
commit | 0c80c55e91b3cbef4f8e62fd5f654db5f043f691 (patch) | |
tree | 5024e6b6f0b9e63c0ce040b32b4471ab847f43cb /modules/node.module | |
parent | 1c45f07e574a78189adddc43fb5683f49cf73db2 (diff) | |
download | brdo-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/node.module')
-rw-r--r-- | modules/node.module | 2 |
1 files changed, 1 insertions, 1 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); } |