Changeset 289

Show
Ignore:
Timestamp:
03/08/08 15:00:50 (5 years ago)
Author:
d0nut
Message:

abstract page inherit events need a static variable

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • application.register/files/lib/system/event/listener/ApplicationRegisterListener.class.php

    r275 r289  
    99 */ 
    1010class ApplicationRegisterListener implements EventListener { 
     11        protected static $check = false; 
    1112        public $templateName = 'applicationRegister'; 
    1213        public $count = 0; 
     
    1617         */ 
    1718        public function execute($eventObj, $className, $eventName) { 
     19                if(self::$check) return; 
     20                self::$check = true; 
     21 
    1822                $sql = "SELECT          usergroup.*, application.*, user.username 
    1923                                FROM            wcf".WCF_N."_group_application application