Skip to:
Content

bbPress.org

Changeset 4334


Ignore:
Timestamp:
11/04/2012 08:56:57 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add some brackets to improve code readibility in update.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/update.php

    r4310 r4334  
    6464
    6565    // The plugin(s) being activated
    66     if ( $action == 'activate' )
     66    if ( $action == 'activate' ) {
    6767        $plugins = isset( $_GET['plugin'] ) ? array( $_GET['plugin'] ) : array();
    68     else
     68    } else {
    6969        $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
     70    }
    7071
    7172    // Set basename if empty
     
    101102
    102103    // The plugin(s) being deactivated
    103     if ( $action == 'deactivate' )
     104    if ( $action == 'deactivate' ) {
    104105        $plugins = isset( $_GET['plugin'] ) ? array( $_GET['plugin'] ) : array();
    105     else
     106    } else {
    106107        $plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
     108    }
    107109
    108110    // Set basename if empty
Note: See TracChangeset for help on using the changeset viewer.