@@ -301,7 +301,7 @@ class AuthService
2045
);
if(count($pwdLog) >= 1){
- $log = array_shift($pwdLog);
+ $log = reset($pwdLog);
$time = strtotime($log->created_at);
}else{
$time = 0;