Skip to content

Commit

Permalink
Invert condition to avoid else.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jan 7, 2016
1 parent b1f1003 commit 8423c00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -441,9 +441,8 @@ public function create($model = null, $options = array()) {
}
$this->requestType = strtolower($options['type']);

if ($options['action'] === false || $options['url'] === false) {
$action = null;
} else {
$action = null;
if ($options['action'] !== false && $options['url'] !== false) {
$action = $this->url($options['action']);
}
unset($options['url']);
Expand Down

0 comments on commit 8423c00

Please sign in to comment.