Browse Source

Removed unneeded null argument check.

ADmad 11 years ago
parent
commit
03225f48b4
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/ORM/Table.php

+ 0 - 4
src/ORM/Table.php

@@ -588,10 +588,6 @@ class Table implements RepositoryInterface, EventListenerInterface {
  * @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)) {