php - Warning: array_merge in admin side -



php - Warning: array_merge in admin side -

i created custom module. & utilize below code language file. so, working fine in opencart 1.5.6.4.

(admin\controller\module\custom.php)

$language = $this->load->language('module/custom'); $this->data = array_merge($this->data, $language);

but, not working in opencart 2.0.

get below error in admin side module in opencart 2.0

warning: array_merge() [function.array-merge]: argument #1 not array

how can prepare it?

would appreciate help.

i have remove $this->data our code & working fine.

correct code.

$data = array_merge($language);

php opencart opencart2.x

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -