- Timestamp:
- Nov 30, 2012, 10:09:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.41/admin/UAM_admin.php
r18239 r19235 152 152 if ($conf['obligatory_user_mail_address']) 153 153 { 154 155 156 if (preg_match('/^[\s]+/', $_POST['UAM_MailExclusion_List']))157 {158 array_push($page['errors'], l10n('UAM_mail_exclusionlist_error'));159 $UAM_Exclusionlist_Error = true;160 }161 }162 elseif (!$conf['obligatory_user_mail_address'])163 {164 $_POST['UAM_MailExclusion_List'] = '';165 }154 // Check if CR-LF exist at begining and end of mail exclusion list - If yes, removes them 155 // -------------------------------------------------------------------------------------- 156 if (preg_match('/^[\s]+/', $_POST['UAM_MailExclusion_List'])) 157 { 158 array_push($page['errors'], l10n('UAM_mail_exclusionlist_error')); 159 $UAM_Exclusionlist_Error = true; 160 } 161 } 162 elseif (!$conf['obligatory_user_mail_address']) 163 { 164 $_POST['UAM_MailExclusion_List'] = ''; 165 } 166 166 167 167 // Consistency check between ConfirmMail and AutoMail - We cannot use GTAutoMail if ConfirmMail is disabled … … 1617 1617 while ($row = pwg_db_fetch_assoc($result)) 1618 1618 { 1619 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));1619 $dbnow = date("Y-m-d H:i:s"); 1620 1620 1621 1621 $query = ' … … 1645 1645 while($row = pwg_db_fetch_assoc($result)) 1646 1646 { 1647 list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));1647 $dbnow = date("Y-m-d H:i:s"); 1648 1648 1649 1649 $query = '
Note: See TracChangeset
for help on using the changeset viewer.