mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR updated detection for an empty report (from r87362)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98160 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ecbd5f89c0
commit
9563c650b4
@ -24,7 +24,7 @@ abstract class SideReport extends Object {
|
||||
$records = $this->records();
|
||||
$fieldsToShow = $this->fieldsToShow();
|
||||
|
||||
if($records) {
|
||||
if($records && count($records)) {
|
||||
$result = "<ul class=\"$this->class\">\n";
|
||||
|
||||
foreach($records as $record) {
|
||||
|
Loading…
Reference in New Issue
Block a user