Solved Undefined array key error in IpRepository::getSharedIpUsers

This topic has been solved
P

Painbaker

Guest
If a user has been deleted but their ip record persists for some reason, this will cause error when trying to view their shared IP addresses:

Code:

Code:
[E_WARNING] Undefined array key 22 in src\XF\Mvc\Entity\AbstractCollection.php at line 104

    XF::handlePhpError() in src\XF\Mvc\Entity\AbstractCollection.php at line 104
    XF\Mvc\Entity\AbstractCollection->offsetGet() in src\XF\Repository\IpRepository.php at line 185
    XF\Repository\IpRepository->getSharedIpUsers() in src\XF\Entity\User.php at line...

Read more

Continue reading...