From d87a65240f945fd362d1b4eba499748e544d7156 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Apr 2010 01:52:02 +0000 Subject: [PATCH] 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 --- 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 = "