From 5a29cccc959dfd0be5fdc279ac1170d2db0b3040 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 3 Apr 2015 18:32:51 -0400 Subject: Various fixes for PHPAnalyzer --- app/Auth/GitHub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Auth/GitHub.php') diff --git a/app/Auth/GitHub.php b/app/Auth/GitHub.php index 0e335fb4..816cc9c1 100644 --- a/app/Auth/GitHub.php +++ b/app/Auth/GitHub.php @@ -34,7 +34,7 @@ class GitHub extends Base { $user = $this->user->getByGitHubId($github_id); - if ($user) { + if (! empty($user)) { $this->userSession->refresh($user); $this->container['dispatcher']->dispatch('auth.success', new AuthEvent(self::AUTH_NAME, $user['id'])); return true; -- cgit v1.2.3