Skip to content

Commit 1ee3657

Browse files
author
Pascal Dreissen
committed
Merge remote-tracking branch 'upstream/stable-3.1' into stable-3.1
2 parents 6f582ef + f7e9ef7 commit 1ee3657

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

interface/lib/classes/tools_sites.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function getDomainModuleDomains($not_used_in_table = null, $selected_domain = nu
157157
$field = "domain";
158158
$select = $field;
159159
}
160-
$sql .= " domain NOT IN (SELECT $select FROM ?? WHERE $field = ?) AND";
160+
$sql .= " domain NOT IN (SELECT $select FROM ?? WHERE $field != ?) AND";
161161
}
162162
if ($_SESSION["s"]["user"]["typ"] == 'admin') {
163163
$sql .= " 1";

interface/web/sites/web_childdomain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function onShowEnd() {
105105
/*
106106
* The domain-module is in use.
107107
*/
108-
$domains = $app->tools_sites->getDomainModuleDomains($this->_vhostdomain_type == 'subdomain' ? null : "web_domain", $this->dataRecord["domain"]);
108+
$domains = $app->tools_sites->getDomainModuleDomains($this->_vhostdomain_type == 'subdomain' ? null : "web_domain");
109109
$domain_select = '';
110110
$selected_domain = '';
111111
if(is_array($domains) && sizeof($domains) > 0) {

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ function update($event_name, $data) {
878878
if($data['new']['hd_quota'] > 0) {
879879
$blocks_soft = $data['new']['hd_quota'] * 1024;
880880
$blocks_hard = $blocks_soft + 1024;
881+
$mb_soft = $data['new']['hd_quota'];
881882
$mb_hard = $mb_soft + 1;
882883
} else {
883884
$mb_soft = $mb_hard = $blocks_soft = $blocks_hard = 0;

0 commit comments

Comments
 (0)