Merge branch 'hotfix-2.1.4'

pull/195/head
iglocska 2013-08-08 11:21:39 +02:00
commit b5e53c16d5
1 changed files with 3 additions and 2 deletions

View File

@ -1835,9 +1835,10 @@ class EventsController extends AppController {
$this->Event->read(null, $id);
$saveEvent['Event'] = $this->Event->data['Event'];
$saveEvent['Event']['published'] = false;
$dist = 3;
$dist = '3';
if (Configure::read('MISP.default_attribute_distribution') != null) {
$dist = Configure::read('MISP.default_attribute_distribution');
$dist = '';
$dist .= Configure::read('MISP.default_attribute_distribution');
}
// read XML
$event = $this->IOCImport->readXML($fileData, $id, $dist);