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:
Sam Minnee 2010-02-04 04:40:05 +00:00
parent ecbd5f89c0
commit 9563c650b4

View File

@ -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) {