Removed infinite loop
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Dec 2012 14:35:44 +0000 (15:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Dec 2012 14:35:44 +0000 (15:35 +0100)
wcfsetup/install/files/lib/data/application/ApplicationAction.class.php

index 98c089d4219ab6e7c95d2fbf84dfe07310daae38..fa0242c03441c297e102c662244f3f6da124fd5f 100644 (file)
@@ -31,17 +31,10 @@ class ApplicationAction extends AbstractDatabaseObjectAction {
         */
        public $applicationEditor = null;
        
-       protected static $i = 0;
-       
        /**
         * Assigns a list of applications to a group and computes cookie domain and path.
         */
        public function rebuild() {
-               self::$i++;
-               if (self::$i > 10) {
-                       throw new \wcf\system\exception\SystemException("Infinite loop");
-               }
-               
                if (empty($this->objects)) {
                        $this->readObjects();
                }
@@ -97,8 +90,6 @@ class ApplicationAction extends AbstractDatabaseObjectAction {
                        }
                }
                WCF::getDB()->commitTransaction();
-               
-               $this->rebuild();
        }
        
        /**