mirror of https://github.com/MISP/MISP
fix: Incorect IF statment in app/Model/AppModel.php, fixes #1891
parent
8f04148fd1
commit
3bdf176eb7
|
@ -113,7 +113,6 @@ class AppModel extends Model {
|
||||||
public function updateDatabase($command) {
|
public function updateDatabase($command) {
|
||||||
$dataSourceConfig = ConnectionManager::getDataSource('default')->config;
|
$dataSourceConfig = ConnectionManager::getDataSource('default')->config;
|
||||||
$dataSource = $dataSourceConfig['datasource'];
|
$dataSource = $dataSourceConfig['datasource'];
|
||||||
$sql = '';
|
|
||||||
$sqlArray = array();
|
$sqlArray = array();
|
||||||
$indexArray = array();
|
$indexArray = array();
|
||||||
$this->Log = ClassRegistry::init('Log');
|
$this->Log = ClassRegistry::init('Log');
|
||||||
|
@ -622,7 +621,6 @@ class AppModel extends Model {
|
||||||
return false;
|
return false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!isset($sqlArray)) $sqlArray = array($sql);
|
|
||||||
foreach ($sqlArray as $sql) {
|
foreach ($sqlArray as $sql) {
|
||||||
try {
|
try {
|
||||||
$this->query($sql);
|
$this->query($sql);
|
||||||
|
|
Loading…
Reference in New Issue