Plugin Directory

Changeset 488992


Ignore:
Timestamp:
01/12/2012 08:44:01 PM (14 years ago)
Author:
ljg3
Message:

No error on no blogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • multisite-plugin-stats/trunk/multisite-plugin-stats.php

    r488990 r488992  
    1010Network: true
    1111
    12 Copyright 2012  Lewis J. Goettner, III  (email : lew@goettner.net)
     12Copyright 2012  Lewis J. Goettner, III  (email : lew@goettner.net)
    1313
    1414This program is free software; you can redistribute it and/or modify
     
    1818This program is distributed in the hope that it will be useful,
    1919but WITHOUT ANY WARRANTY; without even the implied warranty of
    20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     20MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
    2121GNU General Public License for more details.
    2222
    2323You should have received a copy of the GNU General Public License
    2424along with this program; if not, write to the Free Software
    25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
     25Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA    02110-1301 USA
    2626
    2727*/
     
    6565        // Scan the sites for activation
    6666        $blogs = $wpdb->get_col("SELECT blog_id FROM {$wpdb->blogs} WHERE site_id = {$wpdb->siteid} AND spam = 0 AND deleted = 0");
    67         if ($blogs) {
    68           foreach($blogs as $blog_id)   {
    69             switch_to_blog($blog_id);
     67        if ($blogs) {
     68            foreach($blogs as $blog_id) {
     69                switch_to_blog($blog_id);
    7070               
    7171                // Get active plugins
     
    8181                }
    8282               
    83             restore_current_blog();
     83                restore_current_blog();
    8484            }
    85     } else {
    86       ?><div class="error"><p><?php _e('Failed to mass activate: error selecting blogs', 'pm'); ?></p></div><?php
    8785        }
    8886       
     
    129127    // Add a little style
    130128    function custom_css() {
    131       echo '<style type="text/css">
    132               .plugin_list li { margin-left: 2em; }
    133             </style>';
     129        echo '<style type="text/css">
     130                        .plugin_list li { margin-left: 2em; }
     131                    </style>';
    134132    }
    135133   
Note: See TracChangeset for help on using the changeset viewer.