diff --git a/modules/configuration/ajax/updateProject.php b/modules/configuration/ajax/updateProject.php index b12b16fee1e..7af28cb1629 100644 --- a/modules/configuration/ajax/updateProject.php +++ b/modules/configuration/ajax/updateProject.php @@ -44,10 +44,9 @@ exit; } - if ( - empty($_POST['Name']) || - empty($_POST['Alias']) || - strlen($_POST['Alias']) > 4 + if (empty($_POST['Name']) + || empty($_POST['Alias']) + || strlen($_POST['Alias']) > 4 ) { http_response_code(400); echo json_encode(['error' => 'Bad Request']); @@ -60,10 +59,9 @@ ["UserID"=>$user->getId(),"ProjectID"=>$project->getId()] ); } else { - if ( - empty($_POST['Name']) || - empty($_POST['Alias']) || - strlen($_POST['Alias']) > 4 + if (empty($_POST['Name']) + || empty($_POST['Alias']) + || strlen($_POST['Alias']) > 4 ) { http_response_code(400); echo json_encode(['error' => 'Bad Request']);