diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-17 02:53:19 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-17 02:53:19 +0400 |
commit | c1a3d6e5b1002e082a1cbca1dd000c03628df48b (patch) | |
tree | 8ae39f7d4b0fbc7280d1980a5a6efce673a4de90 /core/ViewDataTable.php | |
parent | 81ae48ddaa8921f8fe8fa379f5a294b93b34e62e (diff) |
workaround for visitor log not loading
Diffstat (limited to 'core/ViewDataTable.php')
-rw-r--r-- | core/ViewDataTable.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ViewDataTable.php b/core/ViewDataTable.php index cc43c800d7..5f953838a7 100644 --- a/core/ViewDataTable.php +++ b/core/ViewDataTable.php @@ -94,6 +94,10 @@ class ViewDataTable return new $visualizations[$type]($controllerAction, $apiAction, $defaultReportProperties); } + if (class_exists($type)) { + return new $type($controllerAction, $apiAction, $defaultReportProperties); + } + throw new \Exception(sprintf('Visuzalization type %s not found', $type)); } |