Closed (fixed)
Project:
Automember
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2004 at 20:39 UTC
Updated:
31 Dec 2004 at 03:15 UTC
line 625:
$candidate['created']
no value - empty variable
so the test for membership duration does not work.
Comments
Comment #1
yossarian commentedreplacing line 625:
if (($now - $candidate['created']) >= ($gain_age*86400)) {
with
if ($candidate['age'] >= $gain_age) {
seems to work.
However, another problem is that once you set a minimum membership length, you can't undo it:
if you decide that users of 60 days are automatically promoted, you can't later change that to users of 30 days and have those between 30-60 become $losers.
Comment #2
njivy commentedThanks for the tip, jasper. I committed an update to DRUPAL-4-5.
The "problem" you mentioned is due to the fact that there is no maximum membership length. So reducing the minimum age will not exclude users who exceed it.
Comment #3
njivy commentedComment #4
(not verified) commented