Skip to content

Commit

Permalink
add uuid for new subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Feb 6, 2017
1 parent 1d00741 commit f82abcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/lists/admin/subscribelib2.php
Expand Up @@ -181,8 +181,8 @@
if (!Sql_affected_rows()) {
// they do not exist, so add them
$query = sprintf('insert into %s (email,entered,uniqid,confirmed,
htmlemail,subscribepage) values("%s",now(),"%s",0,%d,%d)',
$GLOBALS['tables']['user'], sql_escape($email), getUniqid(), $htmlemail, $id);
htmlemail,subscribepage,uuid) values("%s",now(),"%s",0,%d,%d,"%s")',
$GLOBALS['tables']['user'], sql_escape($email), getUniqid(), $htmlemail, $id, (string) uuid::generate(4));
$result = Sql_query($query);
$userid = Sql_Insert_Id();
addSubscriberStatistics('total users', 1);
Expand Down

0 comments on commit f82abcd

Please sign in to comment.