Fix selecting actions in ModificationLogListPage
authorJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 27 Aug 2019 11:37:50 +0000 (13:37 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 27 Aug 2019 11:37:50 +0000 (13:37 +0200)
Closes #3058

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

index 94a53bd7955d5cfac980a1dfd550ea0a0c16ac23..97fbb8aa35c4258efcd5c9ca481adbd8071ae71f 100644 (file)
@@ -192,7 +192,7 @@ class ModificationLogListPage extends SortablePage {
                        $packageID = 0;
                        
                        // an integer signals all actions from the package with the relevant id
-                       if ($this->action == intval($this->action)) {
+                       if ($this->action == strval(intval($this->action))) {
                                $packageID = $this->action;
                        }
                        else if (preg_match('~^(?P<objectType>.+)\-(?P<action>[^\-]+)$~', $this->action, $matches)) {