Skip to content
Browse files

ADmads comments

  • Loading branch information...
1 parent cfadc4d commit f5a8eb6bbf0af71f431a944dd4dccf648bb75c02 @dogmatic69 dogmatic69 committed Sep 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/Console/Command/ApiShell.php
  2. +1 −1 lib/Cake/Model/Datasource/DboSource.php
View
2 lib/Cake/Console/Command/ApiShell.php
@@ -77,7 +77,7 @@ public function main() {
if ($count > 1) {
$file = Inflector::underscore($this->args[1]);
$class = Inflector::camelize($this->args[1]);
- } elseif($count) {
+ } elseif ($count) {
$file = $type;
$class = Inflector::camelize($type);
}
View
2 lib/Cake/Model/Datasource/DboSource.php
@@ -1053,7 +1053,7 @@ public function read(Model $model, $queryData = array(), $recursive = null) {
if ($model->recursive == -1) {
$_associations = array();
- } elseif (!$model->recursive) {
+ } elseif (!$model->recursive === 0) {
unset($_associations[2], $_associations[3]);
}

0 comments on commit f5a8eb6

Please sign in to comment.
Something went wrong with that request. Please try again.