Ignore:
Timestamp:
Jun 11, 2007, 12:01:18 AM (17 years ago)
Author:
rub
Message:

Resolved issue 0000489: Mail address obligatory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r2029 r2032  
    3232function validate_mail_address( $mail_address )
    3333{
    34   global $lang;
    35 
    36   if ( $mail_address == '' )
     34  global $lang, $conf;
     35
     36  if (empty($mail_address) and
     37      !($conf['obligatory_user_mail_address'] and in_array(script_basename(), array('register', 'profile'))))
    3738  {
    3839    return '';
Note: See TracChangeset for help on using the changeset viewer.