summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
63954a5)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
if (!$this->_profile_fetched || $forceFetch) {
$this->_profile_fetched = true;
$this->_profile = Profile::get($this, $fields, $visibility);
if (!$this->_profile_fetched || $forceFetch) {
$this->_profile_fetched = true;
$this->_profile = Profile::get($this, $fields, $visibility);
- } else if (!$this->_profile->visibility->equals($visibility)) {
+ } else if ($this->_profile !== null && !$this->_profile->visibility->equals($visibility)) {
return Profile::get($this, $fields, $visibility);
}
return $this->_profile;
return Profile::get($this, $fields, $visibility);
}
return $this->_profile;