Testimonials file needs a bug fix - by noxlux

This topic has 2 replies, 2 voices, and was last updated 6 years, 11 months ago ago by Rose Tyler

  • Avatar: noxlux
    noxlux
    Participant
    May 23, 2017 at 18:39

    The woothemes-testimonials-template.php file on line 159 needs a check otherwise will throw an error because can’t divide by 0.

    This:
    if ($count%$args[‘columns’] == 0 && count( $query ) != $count && $args[‘type’] == ‘grid’) {
    $html .= ‘<div class=”clear”></div></div><div class=”row”>’;
    }

    To this:
    if ( count( $args[‘columns’] ) ) {
    if ($count%$args[‘columns’] == 0 && count( $query ) != $count && $args[‘type’] == ‘grid’) {
    $html .= ‘<div class=”clear”></div></div><div class=”row”>’;
    }
    }

    Thanks

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 24, 2017 at 13:16

    Hello,

    I sent your report to our developers.
    Thank you for the notice.

    Regards,
    Rose Tyler.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.