Module: appdb Branch: master Commit: 158c5c3939bfeb32a40378b7ae840862a7a7b0f3 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=158c5c3939bfeb32a40378b7a...
Author: Alexander Nicolaysen Sørnes <alexander@linux-xqqm.(none)> Date: Sat Nov 21 13:22:03 2009 +0100
Fix sending admin-only emails
---
include/user.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/user.php b/include/user.php index a3b3426..b7cb192 100644 --- a/include/user.php +++ b/include/user.php @@ -585,7 +585,7 @@ class User { // requesting to email admins, so the mail should be sent // regardless of global emails setting $oAdmin = new user($oRow->userid); - if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no' && ($iAppId || $iVersionId))) + if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no' || (!$iAppId && !$iVersionId))) $aUserId[] = $oRow->userid; } }