diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-01 23:39:01 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-01 23:39:01 -0700 |
commit | 7477f0119c39a71e05d3e6b2caad8418a7d41c83 (patch) | |
tree | bdf5ff0e3ed5eb56481635c518049f6ca894f65b /modules/gallery/helpers | |
parent | 4a7fc1a9815099d64b17133da238ef4470071328 (diff) |
Explain wtf we're doing in user_updated.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_event.php | 2 |
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)) { |