Merge pull request #5464 from zaphodef/fix/empty_error_panel

fix: Don't show an empty error when there is no error
pull/5470/head
Andras Iklody 2019-12-16 13:57:36 +01:00 committed by GitHub
commit 45d88bb9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -5157,8 +5157,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);