Commit b3af270d authored by Guinness's avatar Guinness

Bug fix : cannot create an account at first donation

parent c851cd8a
Pipeline #2710 passed with stages
in 1 minute and 6 seconds
......@@ -109,7 +109,7 @@ class Campaign extends Controller
$user = $f3->get('container')['user_finder']->findByEmail(\Utils::asl($email));
if (count($user) > 0 && is_array($user)) {
if (is_array($user) && count($user) > 0) {
// We have an existing user, we should try to login with the provided password
// or 403.
$mapper = new \DB\SQL\Mapper($f3->get('DB'), 'users');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment