Commit 890356a0 authored by Dries's avatar Dries
Browse files

- Patch #50219 by pz: removed some redundant code.

parent 3698f857
...@@ -1743,8 +1743,6 @@ function theme_node_form($form) { ...@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function node_add($type) { function node_add($type) {
global $user; global $user;
$edit = isset($_POST['edit']) ? $_POST['edit'] : '';
// If a node type has been specified, validate its existence. // If a node type has been specified, validate its existence.
if (array_key_exists($type, node_get_types()) && node_access('create', $type)) { if (array_key_exists($type, node_get_types()) && node_access('create', $type)) {
// Initialize settings: // Initialize settings:
......
...@@ -1743,8 +1743,6 @@ function theme_node_form($form) { ...@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function node_add($type) { function node_add($type) {
global $user; global $user;
$edit = isset($_POST['edit']) ? $_POST['edit'] : '';
// If a node type has been specified, validate its existence. // If a node type has been specified, validate its existence.
if (array_key_exists($type, node_get_types()) && node_access('create', $type)) { if (array_key_exists($type, node_get_types()) && node_access('create', $type)) {
// Initialize settings: // Initialize settings:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment