mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use is_array() check
This commit is contained in:
parent
55ca2ddabd
commit
daca52e37c
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue