diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-10-03 22:28:17 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-10-03 22:28:17 +0000 |
| commit | 8ae466ef9c7c99a00e03c091fe527883659252a5 (patch) | |
| tree | 3328697cdd93f5cdcbe680ff449520d227b7f022 /app/Module | |
| parent | 80e7ebe5fee9d9eeeb86c7c701c46040892ccbdd (diff) | |
| download | webtrees-8ae466ef9c7c99a00e03c091fe527883659252a5.tar.gz webtrees-8ae466ef9c7c99a00e03c091fe527883659252a5.tar.bz2 webtrees-8ae466ef9c7c99a00e03c091fe527883659252a5.zip | |
Pending changes email
Diffstat (limited to 'app/Module')
| -rw-r--r-- | app/Module/ReviewChangesModule.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Module/ReviewChangesModule.php b/app/Module/ReviewChangesModule.php index f608dc861d..1d9cbdb5bc 100644 --- a/app/Module/ReviewChangesModule.php +++ b/app/Module/ReviewChangesModule.php @@ -71,7 +71,7 @@ class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface " LIMIT 1" )->fetchOne(); - if ($changes && $sendmail == 'yes') { + if ($changes === '1' && $sendmail === '1') { // There are pending changes - tell moderators/managers/administrators about them. if (WT_TIMESTAMP - Site::getPreference('LAST_CHANGE_EMAIL') > (60 * 60 * 24 * $days)) { // Which users have pending changes? @@ -110,7 +110,7 @@ class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface if (Auth::isModerator($WT_TREE)) { $content .= "<a href=\"#\" onclick=\"window.open('edit_changes.php','_blank', chan_window_specs); return false;\">" . I18N::translate('There are pending changes for you to moderate.') . "</a><br>"; } - if ($sendmail == "yes") { + if ($sendmail === '1') { $content .= I18N::translate('Last email reminder was sent ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL')) . "<br>"; $content .= I18N::translate('Next email reminder will be sent after ') . FunctionsDate::formatTimestamp(Site::getPreference('LAST_CHANGE_EMAIL') + (60 * 60 * 24 * $days)) . "<br><br>"; } |
