fix: Incorect IF statment in app/Model/AppModel.php, fixes #1891

pull/1920/head
iglocska 2017-02-10 10:11:22 +01:00
parent 8f04148fd1
commit 3bdf176eb7
1 changed files with 0 additions and 2 deletions

View File

@ -113,7 +113,6 @@ class AppModel extends Model {
public function updateDatabase($command) {
$dataSourceConfig = ConnectionManager::getDataSource('default')->config;
$dataSource = $dataSourceConfig['datasource'];
$sql = '';
$sqlArray = array();
$indexArray = array();
$this->Log = ClassRegistry::init('Log');
@ -622,7 +621,6 @@ class AppModel extends Model {
return false;
break;
}
if (!isset($sqlArray)) $sqlArray = array($sql);
foreach ($sqlArray as $sql) {
try {
$this->query($sql);