WordPress.org

Plugin Directory

Changeset 556734


Ignore:
Timestamp:
06/12/12 15:44:39 (23 months ago)
Author:
jorbin
Message:

check for ! empty in addition to isset for profile

Location:
addthis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • addthis/trunk/addthis_social_widget.php

    r556724 r556734  
    3838function addthis_early(){ 
    3939    global $addthis_addjs; 
    40  
    4140    if (! isset($addthis_addjs)){ 
    4241        require('includes/addthis_addjs.php'); 
     
    4746 
    4847 
    49 define( 'addthis_style_default' , 'small_toolbox_with_share'); 
     48define( 'addthis_style_default' , 'fb_tw_p1_sc'); 
    5049define( 'ADDTHIS_PLUGIN_VERSION', '2.4.0'); 
    5150 
  • addthis/trunk/includes/addthis_addjs.php

    r556724 r556734  
    152152 
    153153    function getProfileId(){ 
    154         return (isset($this->_options['profile']))?  $this->_options['profile'] : $this->_cuid; 
     154        return( isset( $this->_options['profile'] ) && ! empty($this->_options['profile']) )?  $this->_options['profile'] : $this->_cuid; 
    155155    } 
    156  
    157156 
    158157    function setProfileId($profile){ 
Note: See TracChangeset for help on using the changeset viewer.