mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR updated detection for an empty report (from r87362) (from r98160)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102755 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ca7d87078f
commit
d87a65240f
@ -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