Show
Ignore:
Timestamp:
03/10/08 21:40:18 (5 years ago)
Author:
MDMAN
Message:

BugFixes?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • application.register/files/lib/action/DisableApplicationRegisterNotificationsAction.class.php

    r303 r310  
    1717                parent::execute(); 
    1818                 
    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 ( 
    2221                                                        SELECT  groupID 
    2322                                                        FROM    wcf".WCF_N."_group_leader 
    2423                                                        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); 
    3426        } 
    3527}