After upgrade to Joomla 4 and php 8.1 one of my forms gives an error
in the form i use a PHP event to validate an arrray of dropdown fields to be unique.
before the update this form was oke. Now i get this error : [0 Undifined constant "ip"]
this is the php code.
Who can help me?
in the form i use a PHP event to validate an arrray of dropdown fields to be unique.
before the update this form was oke. Now i get this error : [0 Undifined constant "ip"]
this is the php code.
Who can help me?
// an array of drop-down names:
$dropdowns=array(
$this->data[ip][0][renner],
$this->data[ip][1][renner],
$this->data[ip][2][renner],
$this->data[ip][3][renner],
$this->data[ip][4][renner],
$this->data[ip][5][renner],
$this->data[ip][6][renner],
$this->data[ip][7][renner],
$this->data[ip][8][renner],
$this->data[ip][9][renner],
$this->data[ip][10][renner],
$this->data[ip][11][renner],
$this->data[ip][12][renner],
$this->data[ip][13][renner],
$this->data[ip][14][renner],
);
$dropdowns = array_unique($dropdowns);
if ( count($dropdowns) < 15 ) {
return fail;
} else {
return success;
}