summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-03-04 00:48:22 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-03-04 00:48:22 +0000
commit96eb9c6f9f72406283b7180d4ee103b1f864a557 (patch)
tree05c028c6758669425e33de51f1885f8a67c74ed4 /modules/node.module
parentd16e18f9bbdcff52355b62dc405fb781c4403af4 (diff)
downloadbrdo-96eb9c6f9f72406283b7180d4ee103b1f864a557.tar.gz
brdo-96eb9c6f9f72406283b7180d4ee103b1f864a557.tar.bz2
#18226: Non-admins were not obeying workflow.
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node.module b/modules/node.module
index 78d2cad18..ceccb5f3f 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1255,7 +1255,7 @@ function node_validate($node) {
// Validate for normal users:
$node->uid = $user->uid ? $user->uid : 0;
// Force defaults in case people modify the form:
- $node_options = variable_get('node_options_'. $edit->type, array('status', 'promote'));
+ $node_options = variable_get('node_options_'. $node->type, array('status', 'promote'));
$node->status = in_array('status', $node_options);
$node->moderate = in_array('moderate', $node_options);
$node->promote = in_array('promote', $node_options);