fix: Don't show an empty error when there is no error

pull/5464/head
Pierre-Jean Grenier 2019-12-12 17:06:53 +01:00
parent 778aaf2364
commit e934eede67
1 changed files with 2 additions and 1 deletions

View File

@ -5160,8 +5160,9 @@ class EventsController extends AppController
$this->set('importComment', $importComment);
$this->render($render_name);
}
} else {
$this->Flash->error($fail);
}
$this->Flash->error($fail);
}
$this->set('configTypes', $this->Module->configTypes);
$this->set('module', $module);