Skip to content

Commit

Permalink
Removing redundant/always true conditions in Controller::__mergeVars.
Browse files Browse the repository at this point in the history
Fixes #1830
  • Loading branch information
markstory committed Jul 17, 2011
1 parent 7d1c99a commit ff5ac73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/controller/controller.php
Expand Up @@ -424,7 +424,7 @@ function __mergeVars() {
$this->uses = array_flip($this->uses); $this->uses = array_flip($this->uses);
array_unshift($this->uses, $plugin . $this->modelClass); array_unshift($this->uses, $plugin . $this->modelClass);
} }
} elseif ($this->uses !== null || $this->uses !== false) { } else {
$merge[] = 'uses'; $merge[] = 'uses';
} }


Expand All @@ -448,7 +448,7 @@ function __mergeVars() {
$uses = $appVars['uses']; $uses = $appVars['uses'];
$merge = array('components', 'helpers'); $merge = array('components', 'helpers');


if ($this->uses !== null || $this->uses !== false) { if ($this->uses !== null && $this->uses !== false) {
$merge[] = 'uses'; $merge[] = 'uses';
} }


Expand Down

0 comments on commit ff5ac73

Please sign in to comment.