diff --git a/src/Controllers/ApiController.php b/src/Controllers/ApiController.php index 26ad30dd..30891cec 100644 --- a/src/Controllers/ApiController.php +++ b/src/Controllers/ApiController.php @@ -100,7 +100,7 @@ function actionIndex() } if (Craft::$app->request->isPost && $query=Craft::$app->request->post('variables')) { - $variables = $query; + $variables = json_decode($query, true); } else if (Craft::$app->request->isGet && $query=Craft::$app->request->get('variables')) { $variables = json_decode($query, true);