From 96eb9c6f9f72406283b7180d4ee103b1f864a557 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 4 Mar 2005 00:48:22 +0000 Subject: #18226: Non-admins were not obeying workflow. --- modules/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node.module') 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); -- cgit v1.2.3