Permalink
Browse files

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
  • Loading branch information...
1 parent ca7d870 commit d87a65240f945fd362d1b4eba499748e544d7156 @chillu chillu committed Apr 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/SideReport.php
View
@@ -24,7 +24,7 @@ function getHTML() {
$records = $this->records();
$fieldsToShow = $this->fieldsToShow();
- if($records) {
+ if($records && count($records)) {
$result = "<ul class=\"$this->class\">\n";
foreach($records as $record) {

0 comments on commit d87a652

Please sign in to comment.