Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
323428ff
Commit
323428ff
authored
May 18, 2022
by
Thom
🛠
Browse files
Fix checks to send email also if only reseller should receive it (
#6346
)
parent
ca51eab3
Pipeline
#11317
passed with stage
in 7 minutes and 7 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/300-quota_notify.inc.php
View file @
323428ff
...
...
@@ -566,7 +566,7 @@ class cronjob_quota_notify extends cronjob {
if
(
$rec
[
'last_quota_notification'
])
$app
->
dbmaster
->
datalogUpdate
(
'web_database'
,
array
(
"last_quota_notification"
=>
null
),
'database_id'
,
$rec
[
'database_id'
]);
// send notification - everything ok again
if
(
$rec
[
'last_quota_notification'
]
&&
$web_config
[
'overquota_notify_onok'
]
==
'y'
&&
(
$web_config
[
'overquota_db_notify_admin'
]
==
'y'
||
$web_config
[
'overquota_db_notify_client'
]
==
'y'
))
{
if
(
$rec
[
'last_quota_notification'
]
&&
$web_config
[
'overquota_notify_onok'
]
==
'y'
&&
(
$web_config
[
'overquota_db_notify_admin'
]
==
'y'
||
$web_config
[
'overquota_db_notify_reseller'
]
==
'y'
||
$web_config
[
'overquota_db_notify_client'
]
==
'y'
))
{
$placeholders
=
array
(
'{database_name}'
=>
$rec
[
'database_name'
],
'{admin_mail}'
=>
(
$global_config
[
'admin_mail'
]
!=
''
?
$global_config
[
'admin_mail'
]
:
'root'
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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