diff --git a/lib/Push.php b/lib/Push.php index 3744dd582..adbe60053 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -292,7 +292,7 @@ protected function filterByTokenAge(array $devices): array { $tokenAgeList = array_slice($tokenAgeList, 0, self::DEVICE_LIMIT); $devices = []; foreach ($deviceList as $device) { - if (!isset($tokenAgeList[$device['token']]) && $tokenAgeList[$device['token']] !== 0) { + if (!isset($tokenAgeList[$device['token']]) || $tokenAgeList[$device['token']] !== 0) { $this->printInfo('Device token ' . $device['token'] . ' is not in the most recent 20 devices: ' . $tokenAgeList[$device['token']] . ''); continue; }