Module: appdb Branch: master Commit: 0fe0530337584592d6f84a0bb1343a52a4a34550 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0fe0530337584592d6f84a0bb...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Fri Nov 13 11:57:45 2009 +0100
user: Fix fatal error in get_notify_email_address_list
---
include/user.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/user.php b/include/user.php index 212b331..5edc355 100644 --- a/include/user.php +++ b/include/user.php @@ -581,7 +581,8 @@ class User { // if we didn't find this entry in the $aUserId // array then we should add it if the admin has // enabled global emails - if($i === false && ($this->getPref('disable_global_emails','no') == 'no')) + $oAdmin = new user($oRow->userId); + if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no')) $aUserId[] = $oRow->userid; } }