• Resolved Meg Phillips

    (@megphillips91)


    Notice: Undefined variable: hide in /plugins/easy-pricing-tables/includes/table-generation/table-generator.php on line 67

    Just thought you may want to address this one. It is usually an easy fix. Thanks.
    Meg

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m seeing this as well.

    The problem is this line

    
    $return .= dh_ptp_generate_simple_flat_pricing_table_html( $id, $hide );
    

    A little searching and dh_ptp_generate_simple_flat_pricing_table_html() is defined in two places? Presumably both files are not being loaded or there’d be a fatal error.

    in simple-flat-table.php the version of the function only accepts 1 parameter, so I’m guessing that’s some legacy stuff? but the version in the design1.php file accepts 2 parameters, but the second one $hide defaults to false.

    For now, I’ve updated the line to

    
    $return .= dh_ptp_generate_simple_flat_pricing_table_html( $id );
    

    to make the notice go away.

    Plugin Author Ryan Novotny

    (@ryannovotny)

    Hi,

    We released a patch to fix that, thanks for the report.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice Undefined Variable’ is closed to new replies.