Changeset 292 for application.register/files/lib/system/event/listener/UserGroupAdministrateMailListener.class.php
- Timestamp:
- 03/08/08 16:07:56 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
application.register/files/lib/system/event/listener/UserGroupAdministrateMailListener.class.php
r286 r292 15 15 16 16 //data 17 protected $ enabled;17 protected $displayNotification=0, $emailNotification=0; 18 18 19 19 /** … … 38 38 */ 39 39 protected function readData() { 40 $sql = "SELECT COUNT(*) AS c 41 FROM wcf".WCF_N."_groupapplymail 42 WHERE groupID = '".intval($this->eventObj->groupID)."' 43 AND userID = '".WCF::getUser()->userID."'"; 40 $sql = "SELECT displayNotification, 41 emailNotification 42 FROM wcf".WCF_N."_group_application_mail 43 WHERE groupID = ".intval($this->eventObj->groupID)." 44 AND userID = ".WCF::getUser()->userID; 44 45 $row = WCF::getDB()->getFirstRow($sql); 45 $this->enabled = intval($row['c']); 46 if($row) { 47 $this->displayNotification = intval($row['displayNotification']); 48 $this->emailNotification = intval($row['emailNotification']); 49 } 46 50 } 47 51 … … 52 56 WCF::getTPL()->assign(array( 53 57 'groupID' => $this->eventObj->groupID, 54 'enabled' => $this->enabled, 58 'displayl' => $this->displayNotification, 59 'email' => $this->emailNotification, 55 60 'groupType' => $this->eventObj->group->groupType 56 61 ));
