From 1c4215bdc7e143af32e21bcdf2d0c580e35693c4 Mon Sep 17 00:00:00 2001 From: Iglocska Date: Sat, 6 Aug 2016 09:55:11 +0200 Subject: [PATCH] fix: Some cleanup --- app/Controller/EventsController.php | 1 - app/Model/Module.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 126c12526..50fa1fd5e 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -3183,7 +3183,6 @@ class EventsController extends AppController { } $this->loadModel('Module'); $modules = $this->Module->getEnabledModules(false, 'Export'); - if (is_array($modules) && !empty($modules)) { foreach ($modules['modules'] as $module) { $exports[$module['name']] = array( diff --git a/app/Model/Module.php b/app/Model/Module.php index dd01be9f5..7c7843b8f 100644 --- a/app/Model/Module.php +++ b/app/Model/Module.php @@ -6,8 +6,8 @@ class Module extends AppModel { private $__validTypes = array( 'Enrichment' => array('hover', 'expansion'), - 'Import' => array('Import'), - 'Export' => array('Export') + 'Import' => array('import'), + 'Export' => array('export') ); private $__typeToFamily = array(