Fix issue with updating anime item
This commit is contained in:
parent
52bd2773c0
commit
b52d301b2a
@ -214,7 +214,7 @@ class Anime extends BaseController {
|
||||
*/
|
||||
public function update()
|
||||
{
|
||||
if ($this->request->getHeader('content-type')[0] === 'application/json')
|
||||
if (stripos($this->request->getHeader('content-type')[0], 'application/json') !== FALSE)
|
||||
{
|
||||
$data = Json::decode((string)$this->request->getBody());
|
||||
}
|
||||
|
@ -91,8 +91,7 @@ class Util {
|
||||
*/
|
||||
public function isViewPage()
|
||||
{
|
||||
$url = $this->container->get('request')
|
||||
->getUri();
|
||||
$url = $this->container->get('request')->getUri();
|
||||
$pageSegments = explode("/", (string) $url);
|
||||
|
||||
$intersect = array_intersect($pageSegments, self::$formPages);
|
||||
|
Loading…
Reference in New Issue
Block a user