Skip to content

Commit

Permalink
Fix sending reminders (Bug #12867).
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 25, 2014
1 parent 6330ea6 commit 6b9b264
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion whups/lib/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,10 @@ public function mail(array $opts)
continue;
}

if ($details && $details['type'] == 'user') {
if ($details &&
$details['type'] == 'user' &&
($details['user'] == $registry->getAuth() ||
!$registry->getAuth())) {
$user_prefs = $GLOBALS['injector']
->getInstance('Horde_Core_Factory_Prefs')
->create('whups', array('user' => $details['user']));
Expand Down

0 comments on commit 6b9b264

Please sign in to comment.