Plugin Directory

Changeset 2130768


Ignore:
Timestamp:
07/30/2019 12:16:16 PM (7 years ago)
Author:
humcommerce
Message:

Fixed : fatal error in plugin when user does not have woocommerce plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • humcommerce/trunk/public/class-humcommerce-public.php

    r2130583 r2130768  
    314314    public function create_funnel( $option, $oldvalue, $newvalue ) {
    315315        if ( $option === 'humcommerce_options' ) {
     316            if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
     317                return;
     318            }
    316319            $funnel_created = get_option( 'funnelCreated' );
    317320            if ( empty( $funnel_created ) ) {
Note: See TracChangeset for help on using the changeset viewer.