Plugin Directory

Changeset 904754


Ignore:
Timestamp:
04/29/2014 01:32:11 PM (12 years ago)
Author:
srijith.v
Message:
  • Removed a warning in 'array_key_exists' check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • addthis-smart-layers/trunk/addthis-smart_layers.php

    r875437 r904754  
    33 * Plugin Name: AddThis Smart Layers
    44 * Description: AddThis Smart Layers. Make your site smarter. Increase traffic, engagement and revenue by instantly showing the right social tools and content to every visitor.
    5  * Version: 1.1
     5 * Version: 1.0.10
    66 * Author: The AddThis Team
    77 * Author URI: http://www.addthis.com/blog
     
    1010*/
    1111
    12 define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.9');
     12define('ADDTHIS_SMART_LAYER_PRODUCT_CODE', 'wpp-1.0.10');
    1313define('ADDTHIS_SMART_LAYER_AT_VERSION', 300);
    1414
     
    189189        $array = json_decode($server_output);
    190190        // check for pro user
    191         if (array_key_exists('_default', $array)) {
     191        if (is_array($array) && array_key_exists('_default', $array)){
    192192            if ($smart_layer_pro) {
    193193                // update pro user settings
Note: See TracChangeset for help on using the changeset viewer.