Skip to content
This repository
Browse code

fixing error pointed out by dereuromark with recursive #846 (comment)

  • Loading branch information...
commit cd99b7d6ff335a5ef8d3e6609cbc09d4ef31be4d 1 parent 36314e6
Carl Sutton authored September 21, 2012
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 === 0) {
  1056
+		} elseif ($model->recursive === 0) {
1057 1057
 			unset($_associations[2], $_associations[3]);
1058 1058
 		}
1059 1059
 

0 notes on commit cd99b7d

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