minor bugfix on TagsController.php

pull/2033/head
rmarsollier 2017-03-09 15:28:21 +01:00
parent 71e57b66c4
commit fb065b05c4
1 changed files with 2 additions and 2 deletions

View File

@ -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');
}