| 18 | | $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application |
| 19 | | LEFT JOIN wcf".WCF_N."_group_application_notification |
| 20 | | ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID |
| 21 | | AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." |
| 22 | | WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL |
| 23 | | AND wcf".WCF_N."_group_application.groupID IN ( |
| 24 | | SELECT groupID |
| 25 | | FROM wcf".WCF_N."_group_leader |
| 26 | | WHERE userID = ".WCF::getUser()->userID." |
| 27 | | ) |
| 28 | | AND wcf".WCF_N."_group_application.applicationStatus = 0 |
| 29 | | "; |
| | 18 | |
| | 19 | if (APPLICATION_INFO_ENABLE == 1) { |
| | 20 | |
| | 21 | $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application |
| | 22 | LEFT JOIN wcf".WCF_N."_group_application_notification |
| | 23 | ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID |
| | 24 | AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." |
| | 25 | WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL |
| | 26 | AND wcf".WCF_N."_group_application.groupID IN ( |
| | 27 | SELECT groupID |
| | 28 | FROM wcf".WCF_N."_group_leader |
| | 29 | WHERE userID = ".WCF::getUser()->userID." |
| | 30 | ) |
| | 31 | AND wcf".WCF_N."_group_application.applicationStatus = 0 |
| | 32 | "; |
| 38 | | )); |
| 39 | | //Hier wird das Template in dem Platzhalter userMessages integriert. |
| 40 | | if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { |
| 41 | | WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); |
| | 41 | )); |
| | 42 | //Hier wird das Template in dem Platzhalter userMessages integriert. |
| | 43 | if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { |
| | 44 | WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); |
| | 45 | } |