diff options
Diffstat (limited to 'it_mail.class')
-rw-r--r-- | it_mail.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_mail.class b/it_mail.class index 6da381c..ea63aba 100644 --- a/it_mail.class +++ b/it_mail.class @@ -444,7 +444,7 @@ function check_email($email, $checkmailbox = true) $from = "itools@" . (($domain = it::match('[^.]*\.(.+)', getenv('ULTRAHOSTNAME') ? getenv('ULTRAHOSTNAME') : it::exec('hostname -f 2>/dev/null || hostname 2>/dev/null'))) ? $domain : "gna.ch"); /* Determine domain and email for test, skip if called as it_mail::check_email() */ - if (is_object($this)) + if (isset($this) && is_object($this)) { for ($i = 0; $i < count($this->header_names); $i++) { |