It makes no difference if the drugs were legal or not.
In a criminal court it would make a difference.