line 625:

$candidate['created']

no value - empty variable

so the test for membership duration does not work.

Comments

yossarian’s picture

replacing 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.

njivy’s picture

Thanks 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.

njivy’s picture

Anonymous’s picture