Fix exception order when multiple pages exist
authorMatthias Schmidt <gravatronics@live.com>
Sun, 10 Feb 2019 15:24:21 +0000 (16:24 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 10 Feb 2019 15:24:21 +0000 (16:24 +0100)
See #2831
See ba3e3b615f5210c280575ed72c0230529f78ae86

wcfsetup/install/files/lib/acp/page/ExceptionLogViewPage.class.php

index 74848a5ca85b9f74fe3039195d1369a9ee337b3a..2259a1a13cc59282bc2a1a15459e5b1e20e0f7c2 100644 (file)
@@ -144,6 +144,9 @@ class ExceptionLogViewPage extends MultipleLinkPage {
                        return;
                }
                
+               // show latest exceptions first
+               $this->exceptions = array_reverse($this->exceptions, true);
+               
                if ($this->exceptionID) $this->searchPage($this->exceptionID);
                $this->calculateNumberOfPages();
                
@@ -196,9 +199,6 @@ class ExceptionLogViewPage extends MultipleLinkPage {
                        $matches['chain'] = $chainMatches;
                        $this->exceptions[$key] = $matches;
                }
-               
-               // show latest exceptions first
-               $this->exceptions = array_reverse($this->exceptions, true);
        }
        
        /**