diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index 68733daeb..cab2ba055 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -1561,7 +1561,7 @@ class DboSource extends DataSource { if (!empty($assocData['order'])) { $queryData['order'][] = $assocData['order']; } - if (!in_array($join, $queryData['joins'])) { + if (!in_array($join, $queryData['joins'], true)) { $queryData['joins'][] = $join; } return true;