Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning #4

Open
mathop opened this issue Apr 1, 2011 · 2 comments
Open

Warning #4

mathop opened this issue Apr 1, 2011 · 2 comments

Comments

@mathop
Copy link

mathop commented Apr 1, 2011

This warning appears when no parameter is not passed in the variable helper.

var $helpers = array('Asset.asset');

Warning (2): array_merge() [http://php.net/function.array-merge]: Argument #2 is not an array [APP/plugins/asset/views/helpers/asset.php, line 66]

@mcurry
Copy link
Owner

mcurry commented Apr 1, 2011

Yea I just started getting this one. Maybe caused by latest CakePHP 1.3? Regardless I have a fix, but forgot to push. It's just to check if that var is null or array. I'll push soon.

@doctorfox
Copy link

Edit views/helpers/asset.php
On line 66:
$this->options = is_array($options)? array_merge($this->options, $options):$this->options;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants