X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FAutopromote.php;h=f8f3c24a6a364ea220bbbf7b1cf2eea6ed7e2c6a;hb=748c5eae2fd5d897c94c48771161c259941a7488;hp=21567878868a0033194a713d604ec42f10df900e;hpb=8e158c68bc43106caec2c1d5aa8c656dab568818;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 );