diff --git a/module/tree/model.php b/module/tree/model.php index d70f73cb01..40bd47fc41 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1890,6 +1890,12 @@ class treeModel extends model } } + if(empty($module->name)) + { + dao::$errors['name'] = sprintf($this->lang->error->notempty, $this->lang->tree->name); + return false; + } + $modules = $self->type == 'story' ? $this->getOptionMenu($self->root, 'story', 0, 'all') : array(); $parent = $this->getById((int)$this->post->parent);