I have run into a strange issue.

I am calling the formmail script from within a method in a formProcessor class I wrote.

When I submit the form, I get the error:
in_array() expects parameter 2 to be array, null given

Non-fatal run-time error at:

In line: 10659

Timed at: May 16, 2011 - 15:23:38

"Script was not halted."

The error originated at: /PATH_TO_THE_APP/FormMail/formmail.php

The server is running: PHP 5.3.3 (Darwin)

Refered from: http://DevelopmentDomain.dev/profile/?contributor=1
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

If I use
PHP Code:
print_r($CONFIG_CHECK); exit; 
on the line just before
PHP Code:
is called (around line 12168 in my script), the page displays:

Array ( [0] => Array ( [0] => ^[-a-z0-9.]+@myemail\.com$ ) )

but within the function
PHP Code:
PHP Code:
is empty.

What could make that variable lose it's value within the function even though the function declares the variable global?

If I call the formmail script outside of the method, it seems to work. I don't see what the difference is though.
At the moment, I am baffled.

Any help would be wonderful!