Changeset 294

Show
Ignore:
Timestamp:
03/08/08 17:13:16 (5 years ago)
Author:
MDMAN
Message:

Einige Änderungen der MySQL-Auslesung verändert.

Location:
application.register
Files:
3 modified

Legend:

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

    r275 r294  
    1616        parent::execute(); 
    1717                 
    18                 $sql = "UPDATE          wcf".WCF_N."_group_application 
     18                $sql = "UPDATE          wcf".WCF_N."_group_application_notification 
    1919                                SET             disableNotification = '1' 
    2020                                WHERE           groupID IN ( 
    2121                                                        SELECT  groupID 
    2222                                                        FROM    wcf".WCF_N."_group_leader 
    23                                                         WHERE   userID = ".WCF::getUser()->userID." 
     23                                                        WHERE   userID = '".WCF::getUser()->userID."' 
    2424                                                        ) 
    25                                 AND             applicationStatus = '0'                          
     25                                AND             userID = '".WCF::getUser()->userID."'                            
    2626                                "; 
    2727                WCF::getDB()->sendQuery($sql); 
  • application.register/files/lib/system/event/listener/ApplicationRegisterListener.class.php

    r289 r294  
    3131                                                        WHERE   userID = ".WCF::getUser()->userID." 
    3232                                                ) 
    33                                 AND             application.disableNotification != '1' 
     33                                AND             application_notification.disableNotification != '1' 
    3434                                AND     application.applicationStatus = '0'                              
    3535                                "; 
  • application.register/install.sql

    r293 r294  
    1515) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    1616DROP TABLE IF NOT EXISTS wcf_group_application_notification; 
    17 CREATE TABLE `wcf1_group_application_notification` ( 
    18 `userID` INT( 10 ) NOT NULL , 
    19 `groupleaderID` INT( 10 ) NOT NULL , 
    20 `disableNotification` TINYINT( 1 ) NOT NULL 
    21 ) ENGINE = MYISAM ;