summaryrefslogtreecommitdiff
path: root/modules/update/update.fetch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/update/update.fetch.inc')
-rw-r--r--modules/update/update.fetch.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/update/update.fetch.inc b/modules/update/update.fetch.inc
index e1790c3f2..860a1b975 100644
--- a/modules/update/update.fetch.inc
+++ b/modules/update/update.fetch.inc
@@ -352,7 +352,12 @@ function _update_cron_notify() {
else {
$target_language = $default_language;
}
- drupal_mail('update', 'status_notify', $target, $target_language, $params);
+ $message = drupal_mail('update', 'status_notify', $target, $target_language, $params);
+ // Track when the last mail was successfully sent to avoid sending
+ // too many e-mails.
+ if ($message['result']) {
+ variable_set('update_last_email_notification', REQUEST_TIME);
+ }
}
}
}