Received this error when I enabled the module and set it to validate when conditions are met.

Comments

Docc’s picture

Thats because this function is from PHP 5.1.0 and up.
You can create your own function and place it into the module.

Example:

function array_intersect_key($arr1, $arr2) {
    $res = array();
    foreach($arr1 as $key=>$value) {
        $push = true;
        for ($i = 1; $i < func_num_args(); $i++) {
            $actArray = func_get_arg($i);
            if (gettype($actArray) != 'array') return false;
            if (!array_key_exists($key, $actArray)) $push = false;
        }
        if ($push) $res[$key] = $arr1[$key];
    }
    return $res;
}
smurk75’s picture

Your awesome Doc! That worked perfectly!

Thank you!

Sam

superkuton’s picture

It worked! Thanks, docc!

tobiassjosten’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #247217.

gejo’s picture

thanks, it worked for me.