Skip to content

Commit

Permalink
Removed unneeded null argument check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 2, 2014
1 parent 5e3edad commit 03225f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ORM/Table.php
Expand Up @@ -588,10 +588,6 @@ public function associations() {
* @see \Cake\ORM\Table::belongsToMany()
*/
public function addAssociations(array $params) {
if ($params === null) {
return $this->_associations;
}

foreach ($params as $assocType => $tables) {
foreach ($tables as $associated => $options) {
if (is_numeric($associated)) {
Expand Down

0 comments on commit 03225f4

Please sign in to comment.