1
hey, thank you for your but this wasn't the problem.
In fact I've found the answer :
instead of doing a copy like this :
$citeria2 = $criteria
I use the clone() function like this:
$criteria2 = clone($criteria)
but I still don't know why $criteria used in my fonction is not a copy of $criteria but is a reference...
In fact I've found the answer :
instead of doing a copy like this :
$citeria2 = $criteria
I use the clone() function like this:
$criteria2 = clone($criteria)
but I still don't know why $criteria used in my fonction is not a copy of $criteria but is a reference...