Use is_array() check

This commit is contained in:
Mark S 2016-01-06 18:05:01 +01:00
parent 55ca2ddabd
commit daca52e37c

View file

@ -382,7 +382,7 @@ class FormHelper extends AppHelper {
if (isset($options['action'])) { if (isset($options['action'])) {
trigger_error('Using key `action` is deprecated, use `url` directly instead.', E_USER_DEPRECATED); 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']; $options['action'] = $options['url']['action'];
} }