warning: Invalid argument supplied for foreach() in /home/*************l/modules/views_nivo_slider/views-nivo-slider-view.tpl.php on line 40.

Need to insert in line 40-44

if(is_array($view)): // bug fix 1129444
foreach($view->_vns_captions as $vns_id => $vns_caption):

print $vns_id " class="nivo-html-caption">
print $vns_caption;

endforeach; //bug fix 1126946
endif; // bug fix 1129444

CommentFileSizeAuthor
views-nivo-slider-view.tpl_.zip675 bytessiteogra

Comments

edvanleeuwen’s picture

I think

if(is_array($view)):

should read

if(is_array($view->_vns_captions)):

as $view is an Object and is-array fails.

giorgosk’s picture

Category: task » bug
Status: Active » Closed (duplicate)
citywizz’s picture

I modified the wonderful GiorgosK fix on this basis by removing the "header" "admin_links". Now its clean for me.