From f8a02ca736d38d86b1a1004c74d345305e96f762 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 9 Oct 2008 05:48:28 +0000 Subject: [PATCH] BUGFIX Fixes so ?flush=1 doesn't stop showing the Reports tab in CMS git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63983 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/ReportAdmin.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index 4d6bf00f..9f492b40 100755 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -47,7 +47,9 @@ class ReportAdmin extends LeftAndMain { if($subClasses) { foreach($subClasses as $subClass) { - if($subClass != 'SSReport') $processedReports[] = new $subClass(); + if($subClass != 'SSReport') { + $processedReports[] = new $subClass(); + } } } @@ -159,6 +161,7 @@ class ReportAdmin extends LeftAndMain { * @return boolean */ public static function has_reports() { + global $_ALL_CLASSES; $subClasses = ClassInfo::subclassesFor('SSReport'); if($subClasses) {