Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
ede489de
Commit
ede489de
authored
Jul 27, 2014
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#3534 - Check if mail quota check is working correctly
parent
d678830e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
interface/web/mail/mail_user_edit.php
interface/web/mail/mail_user_edit.php
+2
-1
No files found.
interface/web/mail/mail_user_edit.php
View file @
ede489de
...
...
@@ -166,7 +166,7 @@ class page_action extends tform_actions {
}
// Check the quota and adjust
if
(
isset
(
$_POST
[
"quota"
])
&&
$client
[
"limit_mailquota"
]
>=
0
&&
$app
->
functions
->
intval
(
$this
->
dataRecord
[
"quota"
])
*
1024
*
1024
!=
$this
->
oldDataRecord
[
'quota'
]
)
{
if
(
isset
(
$_POST
[
"quota"
])
&&
$client
[
"limit_mailquota"
]
>=
0
&&
((
$app
->
functions
->
intval
(
$this
->
dataRecord
[
"quota"
])
*
1024
*
1024
!=
$this
->
oldDataRecord
[
'quota'
])
||
(
$_POST
[
"quota"
]
<=
0
))
)
{
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != "
.
$app
->
functions
->
intval
(
$this
->
id
)
.
" AND "
.
$app
->
tform
->
getAuthSQL
(
'u'
));
$mailquota
=
$tmp
[
"mailquota"
]
/
1024
/
1024
;
$new_mailbox_quota
=
$app
->
functions
->
intval
(
$this
->
dataRecord
[
"quota"
]);
...
...
@@ -179,6 +179,7 @@ class page_action extends tform_actions {
unset
(
$tmp
);
unset
(
$tmp_quota
);
}
}
// end if user is not admin
...
...
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