Skip to content

Commit

Permalink
Avoid Property of non-object PHP warning, closes #1311
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed May 1, 2012
1 parent 20ac38c commit 050d334
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/plugins/googleplus/model/class.GooglePlusCrawler.php
Expand Up @@ -135,8 +135,10 @@ public function initializeInstanceUser($client_id, $client_secret, $access_token
}
}

$user_details->network = $network;
$user = $this->parseUserDetails($user_details);
if (isset($user_details)) {
$user_details->network = $network;
$user = $this->parseUserDetails($user_details);
}
if (isset($user)) {
$user_object = new User($user, 'Owner initialization');
$user_dao->updateUser($user_object);
Expand Down

0 comments on commit 050d334

Please sign in to comment.