Plugin Directory

Changeset 974301


Ignore:
Timestamp:
08/27/2014 09:36:55 PM (12 years ago)
Author:
blots
Message:

Fixed minor bug causing notices

Location:
wolfnet-idx-for-wordpress
Files:
113 added
3 edited

Legend:

Unmodified
Added
Removed
  • wolfnet-idx-for-wordpress/trunk/ReadMe.txt

    r974244 r974301  
    55Requires at least:  3.5.1
    66Tested up to:       3.9
    7 Stable tag:         1.6.1
     7Stable tag:         1.6.2
    88License:            GPLv2 or later
    99License URI:        http://www.gnu.org/licenses/gpl-2.0.html
     
    5252== Changelog ==
    5353
     54= 1.6.2 =
     55* Fixed minor bug causing notices in rare circumstance
     56
    5457= 1.6.1 =
    5558* Fixed key entry bug
     
    5760= 1.6.0 =
    5861* Code refactoring
    59 * minor bug fixes
     62* Minor bug fixes
    6063* Update thumbnail image path
    6164
  • wolfnet-idx-for-wordpress/trunk/template/adminSettings.php

    r974244 r974301  
    4646                            $numrows = count($productKey);
    4747                            // we need to show at least one row of form fields so they can add a key if there are none
    48                             if ($numrows < 1 ) $numrows = 1;
     48                            if ($numrows < 1 ) {
     49                                $numrows = 1;
     50                                $productKey = array( (object) array('key' => '', 'market' => '', 'label' => '') );
     51                            }
    4952                            for($i=1; $i<=$numrows; $i++):
    5053                            ?>
  • wolfnet-idx-for-wordpress/trunk/wolfnet.php

    r972601 r974301  
    66 * Description:  The WolfNet IDX for WordPress plugin provides IDX search solution integration with
    77 *               any WordPress website.
    8  * Version:      1.6.0
     8 * Version:      1.6.2
    99 * Author:       WolfNet Technologies, LLC.
    1010 * Author URI:   http://www.wolfnet.com
     
    4747     * @var string
    4848     */
    49     public $version = '1.6.0';
     49    public $version = '1.6.2';
    5050
    5151    /**
     
    531531        $productKey = json_decode($this->getProductKey());
    532532        // TODO: Add some sort of error throwing for if there are no keys.
    533         return $productKey[0]->key;
     533
     534        if (is_array($productKey) && array_key_exists(0, $productKey)) {
     535            return $productKey[0]->key;
     536        } else {
     537            return false;
     538        }
    534539    }
    535540
Note: See TracChangeset for help on using the changeset viewer.