mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing incorrect string concatenation resulting in invalid conditions. Fixes failing tests.
This commit is contained in:
parent
209af202ec
commit
1230b83438
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ class FixtureTask extends BakeTask {
|
|||
$condition = $this->in($prompt, null, 'WHERE 1=1 LIMIT 10');
|
||||
}
|
||||
} else {
|
||||
$condition = 'WHERE 1=1 ' . isset($this->params['count']) ? $this->params['count'] : 10;
|
||||
$condition = 'WHERE 1=1 LIMIT ' . (isset($this->params['count']) ? $this->params['count'] : 10);
|
||||
}
|
||||
App::import('Model', 'Model', false);
|
||||
$modelObject =& new Model(array('name' => $modelName, 'table' => $useTable, 'ds' => $this->connection));
|
||||
|
|
Loading…
Reference in a new issue