Skip to content
Permalink
Browse files

Invert condition to avoid else.

  • Loading branch information...
dereuromark committed Jan 7, 2016
1 parent b1f1003 commit 8423c004b94d9bb37839829ec88b95debd5a77db
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/View/Helper/FormHelper.php
@@ -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']);

0 comments on commit 8423c00

Please sign in to comment.
You can’t perform that action at this time.