Changeset 215 for trunk/include
- Timestamp:
- May 20, 2009, 8:54:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_active_plugin.php
r179 r215 8 8 $plugins = get_option('active_plugins'); 9 9 $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 } 14 16 } 17 } else { 18 $plugins = array(); 15 19 } 16 20 if (!$is_active){
Note: See TracChangeset
for help on using the changeset viewer.