dev/core#2998 - Fix standalone throwing exception when fetching unknown user
authorPatrick Figel <pfigel@greenpeace.org>
Sun, 3 Dec 2023 11:27:41 +0000 (11:27 +0000)
committerPatrick Figel <pfigel@greenpeace.org>
Sun, 3 Dec 2023 11:27:41 +0000 (11:27 +0000)
commitde99de653f7d18c59e920c6b31c55e6d28c776bf
treef260a14c46cb3de3522ac4ca6792ad5ea024352c
parentc14b4d71c3f43dee5873651ba43ce27511d2b52d
dev/core#2998 - Fix standalone throwing exception when fetching unknown user

This fixes an issue where getUserIDFromUsername() was throwing an exception
when fetching unknown users, rather than return NULL.
ext/standaloneusers/Civi/Standalone/Security.php
ext/standaloneusers/tests/phpunit/Civi/Standalone/SecurityTest.php