Plugin Directory

Changeset 356442

Timestamp:
03/07/2011 03:39:26 AM (13 years ago)
Author:
jghazally
Message:

wrap wpsc_member functions in function_exists : http://getshopped.org/forums/topic.php?id=18107

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/ajax-and-init.php

    r354352 r356442  
    436436        if ( $_REQUEST['suspend'] == 'true' ) {
    437437            if ( $_REQUEST['value'] == 1 ) {
    438                 wpsc_member_dedeactivate_subscriptions( $_POST['id'] );
     438                if( function_exists('wpsc_member_dedeactivate_subscriptions'))
     439                    wpsc_member_dedeactivate_subscriptions( $_POST['id'] );
    439440            } else {
     441
    440442                wpsc_member_deactivate_subscriptions( $_POST['id'] );
    441443            }
Note: See TracChangeset for help on using the changeset viewer.