Skip to content
Permalink
Browse files

Check for options parameter is array

  • Loading branch information...
stakahashi committed Dec 21, 2016
1 parent 6f5b16b commit e19a7b2594e1ac26755315d83f7fbf6304784bb7
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/View/Helper/HtmlHelper.php
@@ -180,9 +180,9 @@ public function __construct(View $View, $settings = array()) {
* @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']);
}

0 comments on commit e19a7b2

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