Skip to content
Permalink
Browse files

Use is_array() check

  • Loading branch information...
dereuromark committed Jan 6, 2016
1 parent 55ca2dd commit daca52e37c62697959a90ff844131dcfaaed9c07
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/FormHelper.php
@@ -382,7 +382,7 @@ public function create($model = null, $options = array()) {
if (isset($options['action'])) {
trigger_error('Using key `action` is deprecated, use `url` directly instead.', E_USER_DEPRECATED);
}
if (isset($options['url']) && isset($options['url']['action'])) {
if (is_array($options['url']) && isset($options['url']['action'])) {
$options['action'] = $options['url']['action'];
}

0 comments on commit daca52e

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