Plugin Directory

Changeset 356443

Timestamp:
03/07/2011 03:41:49 AM (13 years ago)
Author:
jghazally
Message:

fix the last commit to be a little tidier

File:
1 edited

Legend:

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

    r356442 r356443  
    435435        $newvalue = $_POST['value'];
    436436        if ( $_REQUEST['suspend'] == 'true' ) {
    437             if ( $_REQUEST['value'] == 1 ) {
    438                 if( function_exists('wpsc_member_dedeactivate_subscriptions'))
     437            if ( $_REQUEST['value'] == 1 && function_exists('wpsc_member_dedeactivate_subscriptions'))
    439438                    wpsc_member_dedeactivate_subscriptions( $_POST['id'] );
    440             } else {
    441                 if( function_exists('wpsc_member_dedeactivate_subscriptions'))
     439            elseif( function_exists('wpsc_member_dedeactivate_subscriptions'))
    442440                wpsc_member_deactivate_subscriptions( $_POST['id'] );
    443             }
     441           
    444442            exit();
    445443        } else {
Note: See TracChangeset for help on using the changeset viewer.