Skip to content

Commit bbe1bf9

Browse files
author
Till Brehm
committed
Merge branch 'fixed_6823' into 'develop'
Fixed #6823 Closes #6823 See merge request ispconfig/ispconfig3!1978
2 parents df4375e + ee437a1 commit bbe1bf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/client/client_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,13 @@ function onAfterUpdate() {
468468
}
469469

470470
// lock and cancel
471-
if(!isset($this->dataRecord['locked'])) $this->dataRecord['locked'] = 'n';
471+
if(!isset($this->dataRecord['locked']) && isset($this->dataRecord['username'])) $this->dataRecord['locked'] = 'n';
472472
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["locked"] != $this->oldDataRecord['locked'])
473473
{
474474
$lock = $app->functions->func_client_lock($this->id,$this->dataRecord["locked"]);
475475
}
476476

477-
if(!isset($this->dataRecord['canceled'])) $this->dataRecord['canceled'] = 'n';
477+
if(!isset($this->dataRecord['canceled']) && isset($this->dataRecord['username'])) $this->dataRecord['canceled'] = 'n';
478478
if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["canceled"] != $this->oldDataRecord['canceled']) {
479479
$cancel = $app->functions->func_client_cancel($this->id,$this->dataRecord["canceled"]);
480480
}

0 commit comments

Comments
 (0)