Changeset 296
- Timestamp:
- 03/08/08 18:26:41 (5 years ago)
- Location:
- application.register/files/lib
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
application.register/files/lib/action/DisableApplicationRegisterNotificationsAction.class.php
r294 r296 16 16 parent::execute(); 17 17 18 $sql = "UPDATE wcf".WCF_N."_group_application_notification 19 SET disableNotification = '1' 20 WHERE groupID IN ( 21 SELECT groupID 22 FROM wcf".WCF_N."_group_leader 23 WHERE userID = '".WCF::getUser()->userID."' 24 ) 25 AND userID = '".WCF::getUser()->userID."' 18 $sql = "SELECT FROM wcf".WCF_N."_group_application applicationID, userID 19 WHERE userID = ".WCF::getUser()->userID.""; 20 $res = WCF::getDB()->sendQuery($sql); 21 while ($row = WCF::getDB()->fetchArray($res)){ 22 $daten[]=$row; 23 } 24 25 while ($daten){ 26 $sql = "INSERT INTO wcf".WCF_N."_group_application_notification 27 SET userID = ".$daten["userID"].", 28 applicationID = ".$daten["applicationID"].", 29 disableNotifications = '1' 26 30 "; 27 31 WCF::getDB()->sendQuery($sql); 32 } 28 33 } 29 34 } -
application.register/files/lib/system/event/listener/ApplicationRegisterListener.class.php
r295 r296 32 32 ) 33 33 AND (application_notification.disableNotification != '1' 34 AND aplication_notification.userID = ".WCF::getDB()->userID.") 34 AND application_notification.userID = ".WCF::getDB()->userID." 35 ) 35 36 AND application.applicationStatus = '0' 36 37 ";
