XPressME Integration Kit

Trac

Changeset 215


Ignore:
Timestamp:
May 20, 2009, 8:54:43 AM (15 years ago)
Author:
toemon
Message:

プラグインがひとつも無いとき正常にxpressmeプラグインをアクティブにできず、リダイレクトがループになってしまうバグ修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_active_plugin.php

    r179 r215  
    88                $plugins = get_option('active_plugins'); 
    99                $is_active = false; 
    10                 foreach($plugins as $plugin){ 
    11                         if ($plugin == $activation_plugin) { 
    12                                 $is_active = true; 
    13                                 break; 
     10                if (!empty($plugins)){ 
     11                        foreach($plugins as $plugin){ 
     12                                if ($plugin == $activation_plugin) { 
     13                                        $is_active = true; 
     14                                        break; 
     15                                } 
    1416                        } 
     17                } else { 
     18                        $plugins = array(); 
    1519                } 
    1620                if (!$is_active){ 
Note: See TracChangeset for help on using the changeset viewer.