summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/gallery_event.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 8344c11c..5e44caef 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -551,6 +551,8 @@ class gallery_event_Core {
}
static function user_updated($original_user, $updated_user) {
+ // If no default from/reply-to email address is set, adopt the value from the first admin to
+ // set their own email address so that we at least have a valid address for the Gallery.
if ($updated_user->admin) {
$email = module::get_var("gallery", "email_from", "");
if (empty($email)) {