Alexander Nicolaysen Sørnes : user: Fix fatal error in get_notify_email_address_list
Alexander Nicolaysen Sørnes
asornes at winehq.org
Fri Nov 13 04:58:38 CST 2009
Module: appdb
Branch: master
Commit: 0fe0530337584592d6f84a0bb1343a52a4a34550
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0fe0530337584592d6f84a0bb1343a52a4a34550
Author: Alexander Nicolaysen Sørnes <alex at 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;
}
}
More information about the wine-cvs
mailing list