FIX - ошибка при сохранении маршрута
This commit is contained in:
parent
1fe03b2240
commit
17478e1cb0
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue