Author Topic: : Undefined offset: 1 on line 179  (Read 72 times)

ibnati

  • Beginner
  • *
  • Posts: 28
  • A beginner
: Undefined offset: 1 on line 179
« on: July 13, 2018, 18:09:48 pm »
hello

i see a warning on the product page :  Undefined offset: 1    on line  179

<?php   if($show_two_image && $product->images[1]) { ?>

how can i fix this please ?

thanks
amine

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3152
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: : Undefined offset: 1 on line 179
« Reply #1 on: July 13, 2018, 18:52:35 pm »
$product->images[1]
to
isset($product->images[1])

ibnati

  • Beginner
  • *
  • Posts: 28
  • A beginner
Re: : Undefined offset: 1 on line 179
« Reply #2 on: July 13, 2018, 19:36:16 pm »
perfect , this fixed the  issue