Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
27b8b81a
Commit
27b8b81a
authored
Oct 01, 2009
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#885 - client mail quota unlimited
parent
341d2b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interface/web/mail/mail_user_edit.php
interface/web/mail/mail_user_edit.php
+1
-1
No files found.
interface/web/mail/mail_user_edit.php
View file @
27b8b81a
...
...
@@ -146,7 +146,7 @@ class page_action extends tform_actions {
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != "
.
intval
(
$this
->
id
)
.
" AND sys_groupid =
$client_group_id
"
);
$mailquota
=
$tmp
[
"mailquota"
]
/
1024
/
1024
;
$new_mailbox_quota
=
intval
(
$this
->
dataRecord
[
"quota"
]);
if
(
$mailquota
+
$new_mailbox_quota
>
$client
[
"limit_mailquota"
])
{
if
(
(
$mailquota
+
$new_mailbox_quota
>
$client
[
"limit_mailquota"
])
||
(
$new_mailbox_quota
==
0
&&
$client
[
"limit_mailquota"
]
!=
-
1
))
{
$max_free_quota
=
$client
[
"limit_mailquota"
]
-
$mailquota
;
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
lng
(
"limit_mailquota_txt"
)
.
": "
.
$max_free_quota
.
"<br>"
;
// Set the quota field to the max free space
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment