X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fprofile.php;h=6574d0a3b85e8a035b36444df36135a0cda53c9e;hb=285e2fe72d086ae94fc95696a0cefc8755113277;hp=e9ff7b5286744f1510cb31e77808bd09f303aebc;hpb=148af7a9ef164291a44262de6a07285b1ab152f6;p=platal.git diff --git a/classes/profile.php b/classes/profile.php index e9ff7b5..6574d0a 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -925,10 +925,10 @@ class Profile implements PlExportable public function getPartnerSettings($partner_id) { - if ($this->partners_settings == null && !$this->fetched(self::FETCH_PARTNER)) { + if ($this->partners_settings === null && !$this->fetched(self::FETCH_PARTNER)) { $this->setPartnersSettings($this->getProfileField(self::FETCH_PARTNER)); } - if ($this->partners_settings == null) { + if ($this->partners_settings === null) { return PartnerSettings::getEmpty($partner_id); } return $this->partners_settings->get($partner_id); @@ -1000,7 +1000,7 @@ class Profile implements PlExportable pd.yourself, pd.promo, pd.short_name, pd.public_name AS full_name, pd.directory_name, pd.public_name, pd.private_name, IF (pp.pub >= {?}, pp.display_tel, NULL) AS mobile, - (ph.pub >= {?} AND ph.attach IS NOT NULL) AS has_photo, + (ph.pub >= {?} AND ph.attach IS NOT NULL) AS has_photo, ph.pub as photo_pub, ph.x AS photo_width, ph.y AS photo_height, p.last_change < DATE_SUB(NOW(), INTERVAL 365 DAY) AS is_old, pm.expertise AS mentor_expertise,