Plugin Directory

Changeset 1287895


Ignore:
Timestamp:
11/17/2015 11:19:57 AM (10 years ago)
Author:
bgentry
Message:

fixed yet another php error message

Location:
easy-faq-with-expanding-text
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • easy-faq-with-expanding-text/trunk/faq.php

    r1285336 r1287895  
    33Plugin Name: Easy FAQ with Expanding Text
    44Description: Easily create a Frequently Asked Questions page with answers that slide down when the questions are clicked...or a non-FAQ page with the same effect. No need for a shortcode, HTML coding, or javascript tweaking.
    5 Version: 3.2.8.3
     5Version: 3.2.8.3.1
    66Author: bgentry
    77Author URI: http://bryangentry.us
     
    119119        if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    120120            $faqoptions = get_option('bg_faq_options');
    121         if ( array_key_exists('foldup',$faqoptions) ) {
    122             $foldup = $faqoptions['foldup'];
     121       
     122        if ( is_array ( $faqoptions ) ) {
     123            if ( array_key_exists('foldup',$faqoptions) ) {
     124                $foldup = $faqoptions['foldup'];
     125            } else {
     126                $foldup = 'no';
     127            }
    123128        } else {
    124129            $foldup = 'no';
     
    138143function faq_footer() {
    139144    $faqoptions = get_option('bg_faq_options');
     145        if ( is_array ( $faqoptions ) ) {
    140146            if ( array_key_exists('foldup',$faqoptions) ) {
    141             $foldup = $faqoptions['foldup'];
     147                $foldup = $faqoptions['foldup'];
     148            } else {
     149                $foldup = 'no';
     150            }
    142151        } else {
    143152            $foldup = 'no';
     
    154163    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    155164            $faqoptions = get_option('bg_faq_options');
    156         if ( array_key_exists('foldup',$faqoptions) ) {
    157             $foldup = $faqoptions['foldup'];
     165        if ( is_array ( $faqoptions ) ) {
     166            if ( array_key_exists('foldup',$faqoptions) ) {
     167                $foldup = $faqoptions['foldup'];
     168            } else {
     169                $foldup = 'no';
     170            }
    158171        } else {
    159172            $foldup = 'no';
     
    344357        $foldupDefaultChecked = '';
    345358    } else {
    346         if ( array_key_exists('foldup',$faqoptions) ) {
    347             $foldup = $faqoptions['foldup'];
     359        if ( is_array ( $faqoptions ) ) {
     360            if ( array_key_exists('foldup',$faqoptions) ) {
     361                $foldup = $faqoptions['foldup'];
     362            } else {
     363                $foldup = 'no';
     364            }
    348365        } else {
    349366            $foldup = 'no';
     
    426443    if ( $foldupOptions == 'default' || $foldupOptions == false ) {
    427444        $faqoptions = get_option('bg_faq_options');
    428         if ( array_key_exists('foldup',$faqoptions) ) {
    429             $foldup = $faqoptions['foldup'];
     445        if ( is_array ( $faqoptions ) ) {
     446            if ( array_key_exists('foldup',$faqoptions) ) {
     447                $foldup = $faqoptions['foldup'];
     448            } else {
     449                $foldup = 'no';
     450            }
    430451        } else {
    431452            $foldup = 'no';
  • easy-faq-with-expanding-text/trunk/readme.txt

    r1285336 r1287895  
    44Tags: faq pages
    55Tested up to: 4.3.1
    6 Stable tag: 3.2.8.3
     6Stable tag: 3.2.8.3.1
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== Changelog ==
     25
     26=3.3.8.3.1=
     27*Fixed an error message with array_key_exists where a non-array was being returned
    2528
    2629=3.2.8.3=
Note: See TracChangeset for help on using the changeset viewer.