Skip to content
Snippets Groups Projects
Unverified Commit 207249ec authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Get rid of implicit array-to-boolean convertion

parent 8b79e711
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class sspmod_authfacebook_Facebook extends BaseFacebook
$cookie_name = $this->getSharedSessionCookieName();
if (isset($_COOKIE[$cookie_name])) {
$data = $this->parseSignedRequest($_COOKIE[$cookie_name]);
if ($data && !empty($data['domain']) &&
if (!empty($data) && !empty($data['domain']) &&
self::isAllowedDomain($this->getHttpHost(), $data['domain'])) {
// good case
$this->sharedSessionID = $data['id'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment