diff --git a/Server/application/command/SwitchFriendsCommand.php b/Server/application/command/SwitchFriendsCommand.php index 38575b9b..422fb4bf 100644 --- a/Server/application/command/SwitchFriendsCommand.php +++ b/Server/application/command/SwitchFriendsCommand.php @@ -38,7 +38,7 @@ class SwitchFriendsCommand extends Command $toSwitch = []; foreach ($friends as $friend) { - if (isset($friend['time']) && $friend['time'] > $now) { + if (isset($friend['time']) && $friend['time'] < $now) { $toSwitch[] = $friend; } }