Changeset 9395


Ignore:
Timestamp:
Feb 27, 2011, 4:29:52 PM (13 years ago)
Author:
Eric
Message:

bug 2205 fixed : The email address was missing for user to notifiy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/include/functions.inc.php

    r9389 r9395  
    128128  }
    129129
     130/* Get user's email address */
     131  $query ='
     132SELECT mail_address
     133FROM '.USERS_TABLE.'
     134WHERE id = '.$id.'
     135;';
     136  $data = pwg_db_fetch_assoc(pwg_query($query));
     137
    130138/* Send the email with subject and contents */
    131   pwg_mail($email, array(
     139  pwg_mail($data['mail_address'], array(
    132140    'subject' => $subject,
    133141    'content' => ($customtxt),
Note: See TracChangeset for help on using the changeset viewer.