Fixed memleak / infinite allocating loop in WCFSetup.class.php
authorRobert Obermeier <obbi@u5b.de>
Fri, 26 Apr 2013 00:08:53 +0000 (02:08 +0200)
committerRobert Obermeier <obbi@u5b.de>
Fri, 26 Apr 2013 00:08:53 +0000 (02:08 +0200)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index df53d82ca51dd59f2ba22c79821af167ec733876..c5162472ca4e1f2b98a61e8c3cded0537ade2c7d 100644 (file)
@@ -1074,7 +1074,7 @@ class WCFSetup extends WCF {
                                while ($queueID) {
                                        $queueIDs[] = $queueID;
                                        
-                                       $queueID = (isset($queues[$queueID])) ?: 0;
+                                       $queueID = (isset($queues[$queueID])) ? $queues[$queueID] : 0;
                                }
                                
                                // remove previously created queues