Skip to content

Commit da845a5

Browse files
committed
Count the items instead of counting the total items
This avoids an extra query being executed.
1 parent acb4ca9 commit da845a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/system/box/AbstractListViewBoxController.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function hasContent()
5555
$this->loadContent();
5656
}
5757

58-
return $this->getListView()->countItems() > 0;
58+
return $this->getListView()->getItems() !== [];
5959
}
6060

6161
#[\Override]

0 commit comments

Comments
 (0)