using better var names for check occurence return code

This commit is contained in:
Nicolas Roman 2019-03-25 14:36:43 +01:00 committed by Ludovic Poujol
parent cf4d066f0e
commit 2f25655038
2 changed files with 5 additions and 5 deletions

View File

@ -188,9 +188,9 @@ if (isset($_GET['del']) ) {
$account_name=$serveralias['domain'];
$check_occurence_return = check_occurence_name($serveralias['alias']);
$is_alias_present = check_occurence_name($serveralias['alias']);
if ($check_occurence_return == 1) {
if (!$is_alias_present) {
$exec_cmd = 'web-add.sh add-alias ' . $serveralias['domain'] . ' ' . $serveralias['alias'];
sudoexec($exec_cmd, $exec_output, $exec_return);
if ($exec_return == 0) {

View File

@ -113,9 +113,9 @@ if (isset($_GET['edit']) ) {
$account_name=$servername['domain'];
$check_occurence_return = check_occurence_name($servername['servername']);
if ($check_occurence_return == 1) {
$is_servername_present = check_occurence_name($servername['servername']);
if (!$is_servername_present) {
$exec_cmd = 'web-add.sh update-servername ' . $servername['domain'] . ' ' . $servername['servername'] . ' ' . $servername['previous_servername'];
sudoexec($exec_cmd, $exec_output, $exec_return);