mirror of https://github.com/MISP/MISP
minor bugfix on TagsController.php
parent
71e57b66c4
commit
fb065b05c4
|
@ -612,7 +612,7 @@ class TagsController extends AppController {
|
|||
}
|
||||
if (empty($tag)) {
|
||||
if (!empty($this->request->data['tag'])) {
|
||||
$uuid = $this->request->data['tag'];
|
||||
$tag = $this->request->data['tag'];
|
||||
} else {
|
||||
throw new MethodNotAllowedException('Invalid tag');
|
||||
}
|
||||
|
@ -682,7 +682,7 @@ class TagsController extends AppController {
|
|||
}
|
||||
if (empty($tag)) {
|
||||
if (!empty($this->request->data['tag'])) {
|
||||
$uuid = $this->request->data['tag'];
|
||||
$tag = $this->request->data['tag'];
|
||||
} else {
|
||||
throw new MethodNotAllowedException('Invalid tag');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue