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