Commit 890356a0 authored by Dries's avatar Dries

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

parent 3698f857
......@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function node_add($type) {
global $user;
$edit = isset($_POST['edit']) ? $_POST['edit'] : '';
// If a node type has been specified, validate its existence.
if (array_key_exists($type, node_get_types()) && node_access('create', $type)) {
// Initialize settings:
......
......@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function node_add($type) {
global $user;
$edit = isset($_POST['edit']) ? $_POST['edit'] : '';
// If a node type has been specified, validate its existence.
if (array_key_exists($type, node_get_types()) && node_access('create', $type)) {
// 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