Plugin Directory

Changeset 1599574


Ignore:
Timestamp:
02/20/2017 09:32:57 AM (9 years ago)
Author:
DeusTron
Message:

fix update bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mpcx-accordion/trunk/update.php

    r1599554 r1599574  
    66 */
    77
    8 $data = json_decode( get_option( 'mpcx_accordion' ), true );
     8$data = get_option( 'mpcx_accordion' );
     9if ( is_string($data) === true ) {
     10    $data = json_decode( $data, true );
     11}
    912if ( is_array($data) === false ) {
    1013    $data = get_option( 'mpcx_accordion' );
Note: See TracChangeset for help on using the changeset viewer.