Skip to content

Commit

Permalink
Check for options parameter is array
Browse files Browse the repository at this point in the history
  • Loading branch information
stakahashi committed Dec 21, 2016
1 parent 6f5b16b commit e19a7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/View/Helper/HtmlHelper.php
Expand Up @@ -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']);
}
Expand Down

0 comments on commit e19a7b2

Please sign in to comment.