diff --git a/app/controller/campaign.php b/app/controller/campaign.php index 353deda5085ed9a228306787d6688018d3afc201..8e924e3dc2013cd8997918f294672b218fbced3d 100644 --- a/app/controller/campaign.php +++ b/app/controller/campaign.php @@ -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');