Skip to content

Commit

Permalink
Make sure that $user_prefs is always defined when necessary.
Browse files Browse the repository at this point in the history
Bug: 13731
  • Loading branch information
yunosh committed Dec 5, 2014
1 parent 02976b8 commit eab6578
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions whups/lib/Driver.php
Expand Up @@ -511,13 +511,13 @@ public function mail(array $opts)
}

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

0 comments on commit eab6578

Please sign in to comment.