• Resolved wbmessenger

    (@wbmessenger)


    I’ve fixed this and hoping this patch can be rolled into your next updated.

    I received a fatal error pointing to the /dk-pdf/includes/dkpdf-functions.php:356.

    This declaration:$option_post_types = get_option( ‘dkpdf_pdfbutton_post_types’, [] ); can return a non array.

    In order to patch we ensure it’s always an array before running the ! in_array() function.

    Add this line just below line 356:

    // Ensure it is an array [HOT FIX]
    if ( ! is_array( $option_post_types ) ) {
    $option_post_types = array_map( ‘trim’, explode( ‘,’, $option_post_types ) );
    }

Viewing 1 replies (of 1 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hello @wbmessenger,

    Just to let you know that this issue was fixed in 2.2.0.

    Closing ticket, feel free to reopen it or create a new one at any time.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.