diff --git a/code/Report.php b/code/Report.php index e7fb3ae3..91a563b4 100644 --- a/code/Report.php +++ b/code/Report.php @@ -196,7 +196,8 @@ class Report extends ViewableData { $sourceRecords = $this->sourceRecords($params, null, null); if (!$sourceRecords instanceof SS_List) { - user_error($this->class."::sourceRecords does not return an SS_List", E_USER_NOTICE); + + user_error(get_class($this) . "::sourceRecords does not return an SS_List", E_USER_NOTICE); return "-1"; } return $sourceRecords->count(); diff --git a/code/SideReport.php b/code/SideReport.php index f9394958..af08fb6b 100644 --- a/code/SideReport.php +++ b/code/SideReport.php @@ -43,7 +43,7 @@ class SideReportView extends ViewableData $columns = $this->report->columns(); if ($records && $records->Count()) { - $result = "