From 9563c650b4843a7a2745a13bb8651bb183b9a82b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:40:05 +0000 Subject: [PATCH] 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 --- code/SideReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SideReport.php b/code/SideReport.php index e9edab34..33b865b1 100755 --- a/code/SideReport.php +++ b/code/SideReport.php @@ -24,7 +24,7 @@ abstract class SideReport extends Object { $records = $this->records(); $fieldsToShow = $this->fieldsToShow(); - if($records) { + if($records && count($records)) { $result = "