X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FAutopromote.php;h=f8f3c24a6a364ea220bbbf7b1cf2eea6ed7e2c6a;hb=b2e1af572ede54a0087fe0f8b5a607d475e43b57;hp=21567878868a0033194a713d604ec42f10df900e;hpb=ab9436fb9a20b5a335574e36fdd476becabe2dd1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Autopromote.php b/includes/Autopromote.php index 2156787886..f8f3c24a6a 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -187,10 +187,10 @@ class Autopromote { } return $user->getEditCount() >= $reqEditCount; case APCOND_AGE: - $age = time() - wfTimestampOrNull( TS_UNIX, $user->getRegistration() ); + $age = time() - (int)wfTimestampOrNull( TS_UNIX, $user->getRegistration() ); return $age >= $cond[1]; case APCOND_AGE_FROM_EDIT: - $age = time() - wfTimestampOrNull( TS_UNIX, $user->getFirstEditTimestamp() ); + $age = time() - (int)wfTimestampOrNull( TS_UNIX, $user->getFirstEditTimestamp() ); return $age >= $cond[1]; case APCOND_INGROUPS: $groups = array_slice( $cond, 1 );