diff --git a/ground/controllers/JsonController.php b/ground/controllers/JsonController.php index fbb15ce..f0f66a5 100644 --- a/ground/controllers/JsonController.php +++ b/ground/controllers/JsonController.php @@ -254,6 +254,10 @@ class JsonController extends Controller static function actionSaveRoute() { + if (!(isset($_POST['name']) && $_POST['name'] && isset($_POST['points']) && $_POST['points'])) { + App::error404('Неправильное значение!'); + } + $request = array( 'author' => App::$user->id, 'date' => time(),