Changeset 3418 for extensions


Ignore:
Timestamp:
Jun 14, 2009, 8:40:24 PM (15 years ago)
Author:
Eric
Message:

Bug fixed : If Email provider exclusion is set off, new registered user will have a PHP notice on "Undefined variable: ncsemail"

Location:
extensions/NBC_UserAdvManager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/include/functions_UserAdvManager.inc.php

    r3393 r3418  
    317317        $conf_nbc_UserAdvManager = isset($conf['nbc_UserAdvManager']) ? explode(";" , $conf['nbc_UserAdvManager']) : array();
    318318        if (isset($conf_nbc_UserAdvManager[12]))
    319         $ncsemail = strtolower($email);
    320319        {
     320                $ncsemail = strtolower($email);
    321321                $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    322322                for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
  • extensions/NBC_UserAdvManager/main.inc.php

    r3416 r3418  
    22/*
    33Plugin Name: NBC UserAdvManager
    4 Version: 2.10.9b
     4Version: 2.10.9c
    55Description: Permet de renforcer les possibilités de gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
     
    3838
    3939-- 2.10.9b : Bug fixed - Home icon wasn't linked to gallery url in ConfirmMail page. If GALLERY_URL is not set, Home icon gets the pwg root path.
     40
     41-- 2.10.9c : Bug fixed - If Email provider exclusion is set off, new registered user will have a PHP notice on "Undefined variable: ncsemail"
    4042 
    4143
     
    193195      /* This work with a code copy of ValidateEmailProvider() function */
    194196          if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['email']))
    195           $ncsemail = strtolower($_POST['email']);
    196197                {
     198                  $ncsemail = strtolower($_POST['email']);
    197199                  $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    198200                  for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
     
    238240      /* This work with a code copy of ValidateEmailProvider() function */
    239241                if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
    240                 $ncsemail = strtolower($_POST['mail_address']);
    241242                  {
     243                        $ncsemail = strtolower($_POST['mail_address']);
    242244                    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    243245                        for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
     
    305307        /* This don't work on user's profile page - Why ?? */
    306308                if (isset($conf_nbc_UserAdvManager[12]) and $conf_nbc_UserAdvManager[12] == 'true' and !empty($_POST['mail_address']))
    307                 $ncsemail = strtolower($_POST['mail_address']);
    308309                  {
     310                        $ncsemail = strtolower($_POST['mail_address']);
    309311                    $conf_nbc_MailExclusion = split (",",$conf_nbc_UserAdvManager[13]);
    310312                        for ($i = 0 ; $i < count($conf_nbc_MailExclusion) ; $i++)
Note: See TracChangeset for help on using the changeset viewer.