mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
ADmads comments
This commit is contained in:
parent
cfadc4dbb0
commit
f5a8eb6bbf
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class ApiShell extends AppShell {
|
||||||
if ($count > 1) {
|
if ($count > 1) {
|
||||||
$file = Inflector::underscore($this->args[1]);
|
$file = Inflector::underscore($this->args[1]);
|
||||||
$class = Inflector::camelize($this->args[1]);
|
$class = Inflector::camelize($this->args[1]);
|
||||||
} elseif($count) {
|
} elseif ($count) {
|
||||||
$file = $type;
|
$file = $type;
|
||||||
$class = Inflector::camelize($type);
|
$class = Inflector::camelize($type);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1053,7 +1053,7 @@ class DboSource extends DataSource {
|
||||||
|
|
||||||
if ($model->recursive == -1) {
|
if ($model->recursive == -1) {
|
||||||
$_associations = array();
|
$_associations = array();
|
||||||
} elseif (!$model->recursive) {
|
} elseif (!$model->recursive === 0) {
|
||||||
unset($_associations[2], $_associations[3]);
|
unset($_associations[2], $_associations[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue