Update managePHP.js

This commit is contained in:
İlhan Aydınlı
2022-05-18 11:58:38 +03:00
committed by GitHub
parent 04db2bcbeb
commit accdc7ad63

View File

@@ -297,6 +297,11 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
$scope.fetchPHPDetails = function () { $scope.fetchPHPDetails = function () {
var phpSelection = $scope.phpSelection;
if (!phpSelection) {
return;
}
$scope.loadingPHP = false; $scope.loadingPHP = false;
$scope.canNotFetch = true; $scope.canNotFetch = true;
$scope.detailsSaved = true; $scope.detailsSaved = true;
@@ -309,8 +314,6 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
url = "/managephp/getCurrentPHPConfig"; url = "/managephp/getCurrentPHPConfig";
var phpSelection = $scope.phpSelection;
var data = { var data = {
phpSelection: phpSelection, phpSelection: phpSelection,
}; };
@@ -440,14 +443,16 @@ app.controller('editPHPConfig', function ($scope, $http, $timeout) {
}; };
$scope.fetchAdvancePHPDetails = function () { $scope.fetchAdvancePHPDetails = function () {
var phpSelection = $scope.phpSelection;
if (!phpSelection) {
return;
}
$scope.loadingPHP = false; $scope.loadingPHP = false;
$scope.savebtnAdvance = true; $scope.savebtnAdvance = true;
url = "/managephp/getCurrentAdvancedPHPConfig"; url = "/managephp/getCurrentAdvancedPHPConfig";
var phpSelection = $scope.phpSelection;
var data = { var data = {
phpSelection: phpSelection, phpSelection: phpSelection,
}; };