Commit 4082d9ef authored by Doris Tam's avatar Doris Tam 🌷
Browse files

Bug 1966140: Fix logic order error on first page collection

Change-Id: I42dfb0ad39b953df75fcf52ef2aa342da12d029b
parent 12ef6ef3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6110,9 +6110,9 @@ class View {
                }

                $views = $collection->views();
                if (!empty($views)) {
                    $firstview_id = $views['views'][0]->view;
                    $firstview = new View($firstview_id);
                if (!empty($views)) {
                    $c['url'] = $collection->get_url(false);
                    $c['fullurl'] = $needsubdomain ? $collection->get_url(true, false, $firstview) : ($wwwroot . $c['url']);