mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Check for options parameter is array
This commit is contained in:
parent
6f5b16b31f
commit
e19a7b2594
1 changed files with 2 additions and 2 deletions
|
@ -180,9 +180,9 @@ class HtmlHelper extends AppHelper {
|
|||
* @see HtmlHelper::link() for details on $options that can be used.
|
||||
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper
|
||||
*/
|
||||
public function addCrumb($name, $link = null, $options = array()) {
|
||||
public function addCrumb($name, $link = null, $options = null) {
|
||||
$prepend = false;
|
||||
if (isset($options['prepend'])) {
|
||||
if (is_array($options) && isset($options['prepend'])) {
|
||||
$prepend = $options['prepend'];
|
||||
unset($options['prepend']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue