ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 27,330
- Points
- 823
Reputation:
I have this line in my repository
PHP:
$userIds has few ID numbers, and I want to find the recent active user from this few users, but I don't get the accurate update when I order it by the last_activity field.
I tested this by putting an old user into this $userIds array, and logged into that ID and executed the code.
but that $recent_active_user value did not...
Read more
Continue reading...
PHP:
Code:
$recent_active_user = $this->finder('XF:User')->where('user_id', $userIds)->>order(
'last_activity',
'DESC',
)->fetchOne();
$userIds has few ID numbers, and I want to find the recent active user from this few users, but I don't get the accurate update when I order it by the last_activity field.
I tested this by putting an old user into this $userIds array, and logged into that ID and executed the code.
but that $recent_active_user value did not...
Read more
Continue reading...