Plugin Directory

Changeset 1160411


Ignore:
Timestamp:
05/14/2015 12:33:06 PM (11 years ago)
Author:
msalsas
Message:

Small fix, check if get_option( 'widget_dynamic-player-widget' ) is an array

Location:
dynamic-audio-player-basic/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamic-audio-player-basic/trunk/dynamicplayer.php

    r1158163 r1160411  
    44Plugin URI: http://dynamicaudioplayer.com
    55Description: This plugin allows you to add an audio player widget with a dynamic playlist and shortcodes for single buttons
    6 Version: 2.0.1
     6Version: 2.0.2
    77Author: Manolo Salsas Durán
    88Author URI: http://msalsas.com/en/
     
    5252     
    5353    $dyn_option = get_option( "widget_dynamic-player-widget" );
    54     if(isset($dyn_option[1], $dyn_option[1]['dynTotalWidth']) && get_option( "widget_dynamic-player-widget" )[1]['dynTotalWidth'] == 'Small')
     54    if(is_array($dyn_option) && isset($dyn_option[1], $dyn_option[1]['dynTotalWidth']) && get_option( "widget_dynamic-player-widget" )[1]['dynTotalWidth'] == 'Small')
    5555        wp_register_style( 'default-stylesheet', plugins_url('/css/smallPlayer.css', __FILE__) );
    5656   
    57     else if(isset($dyn_option[1], $dyn_option[1]['dynTotalWidth']) && get_option( "widget_dynamic-player-widget" )[1]['dynTotalWidth'] == 'Large')
     57    else if(is_array($dyn_option) && isset($dyn_option[1], $dyn_option[1]['dynTotalWidth']) && get_option( "widget_dynamic-player-widget" )[1]['dynTotalWidth'] == 'Large')
    5858        wp_register_style( 'default-stylesheet', plugins_url('/css/largePlayer.css', __FILE__) );
    5959   
  • dynamic-audio-player-basic/trunk/readme.txt

    r1158177 r1160411  
    4949== Changelog ==
    5050
     51= 2.0.2 =
     52Small fix.
     53
    5154= 2.0.1 =
    5255Improve description and FAQ.
Note: See TracChangeset for help on using the changeset viewer.