Skip to content
This repository
Browse code

ADmads comments

  • Loading branch information...
commit f5a8eb6bbf0af71f431a944dd4dccf648bb75c02 1 parent cfadc4d
Carl Sutton authored September 14, 2012
2  lib/Cake/Console/Command/ApiShell.php
@@ -77,7 +77,7 @@ public function main() {
77 77
 		if ($count > 1) {
78 78
 			$file = Inflector::underscore($this->args[1]);
79 79
 			$class = Inflector::camelize($this->args[1]);
80  
-		} elseif($count) {
  80
+		} elseif ($count) {
81 81
 			$file = $type;
82 82
 			$class = Inflector::camelize($type);
83 83
 		}
2  lib/Cake/Model/Datasource/DboSource.php
@@ -1053,7 +1053,7 @@ public function read(Model $model, $queryData = array(), $recursive = null) {
1053 1053
 
1054 1054
 		if ($model->recursive == -1) {
1055 1055
 			$_associations = array();
1056  
-		} elseif (!$model->recursive) {
  1056
+		} elseif (!$model->recursive === 0) {
1057 1057
 			unset($_associations[2], $_associations[3]);
1058 1058
 		}
1059 1059
 

0 notes on commit f5a8eb6

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