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:
Ingo Schommer 2010-04-14 01:52:02 +00:00
parent ca7d87078f
commit d87a65240f

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