• Resolved funkimunky

    (@funkimunky)


    I am using wordpress 3.2.1
    connections 0.7.1.6
    PHP Version 5.2.8
    on apache 2
    sme server 7
    I am unable to use to attributes together
    ‘category_name’
    ‘category_in’

    <?php connectionsEntryList( array( ‘category_name’=>’Depute Head Teacher’,’category_in’=>’117′,’template’=>’staff-profile’) )

    this always returns no results

    there are entries for this query.

    This works fine on PHP Version 5.3.5

    I have tracked it down to
    class.retrieve.php line 216
    if ( !empty($atts[‘id’]) || !empty($entryIDs) ) $where[] = ‘AND id IN (\” . implode(“‘, ‘”, array_unique( array_merge( (array) $atts[‘id’], (array) $entryIDs ), SORT_NUMERIC) ) . ‘\’)’;

    The problem seems to be with function array_unique.
    if it is used with SORT_NUMERIC sort flat it always replaces array with null.
    If i remove the sort flag array_unique works fine.

    Its probably an incompatibility with the php version I have, but unfortunately I am tied to this version.

    just to clarify on my server
    $input = array(4, “4”, “3”, 4, 3, “3”);
    $result = array_unique($input,SORT_NUMERIC);
    var_dump($result);

    returns
    NULL

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    Yes, that sort flag is incompatible with your version of PHP. I’ve removed it from the dev version so it will not be included in the next release.

    Thread Starter funkimunky

    (@funkimunky)

    Thanks for the notice on updates for this. I’ll take it out of my current version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Connections] No allowing particular shortcode combinations’ is closed to new replies.