Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 12:35 pm EST
Geeklog Forums
Possible error in emailstories function
akerin
// Get users who want stories emailed to them
$usersql = "SELECT username,email,etids,{$_TABLES['users']}.uid AS uuid "
. "FROM {$_TABLES['users']}, {$_TABLES['userindex']} "
. "WHERE {$_TABLES['userindex']}.uid = {$_TABLES['users']}.uid AND (etids <> '-')";
By changing etids <> '-'
to etids <> ''
this seemed to correct the error, and the email was only sent to the correct people. The mdigest also completed properly. Maybe I've screwed something up somewhere else (user table?) if this isn't a bug.
Dirk
The meaning of the etids field changed in 1.3.7. To quote from the source (usersettings.php):
$user_etids = buildTopicList ();
} elseif ($user_etids == '-') { // this means "no topics"
$user_etids = '';
}
bye, Dirk
akerin
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content