Changeset 310 for application.register/files/lib/action/DisableApplicationRegisterNotificationsAction.class.php
- Timestamp:
- 03/10/08 21:40:18 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
application.register/files/lib/action/DisableApplicationRegisterNotificationsAction.class.php
r303 r310 17 17 parent::execute(); 18 18 19 $sql = "SELECT * 20 FROM wcf".WCF_N."_group_application application 21 WHERE application.groupID IN ( 19 $sql = "DELETE FROM wcf".WCF_N."_group_application_notification 20 WHERE groupID IN ( 22 21 SELECT groupID 23 22 FROM wcf".WCF_N."_group_leader 24 23 WHERE userID = ".WCF::getUser()->userID." 25 ) 26 AND application.applicationStatus = 0"; 27 $res = WCF::getDB()->sendQuery($sql); 28 while ($row = WCF::getDB()->fetchArray($res)){ 29 $sql = "INSERT INTO wcf".WCF_N."_group_application_notification (applicationID, userID) 30 VALUES ('".$row["applicationID"]."', '".WCF::getUser()->userID."') 31 "; 32 WCF::getDB()->sendQuery($sql); 33 } 24 )"; 25 WCF::getDB()->sendQuery($sql); 34 26 } 35 27 }
