From e156780ac71c0965c725edc1f88a70a8469e4b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 8 Dec 2010 13:48:12 +0100 Subject: [PATCH] Removes warnings in profile edition. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/jobs.inc.php | 4 ++-- templates/profile/mentor.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index bbd0951..e054404 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -151,7 +151,7 @@ class ProfileSettingJob implements ProfileSetting if (count($job['terms'])) { $termsid = array(); foreach ($job['terms'] as $term) { - if (!$term['full_name']) { + if (!isset($term['full_name'])) { $termsid[] = $term['jtid']; } } @@ -162,7 +162,7 @@ class ProfileSettingJob implements ProfileSetting $termsid); $term_id_to_name = $res->fetchAllAssoc('jtid', false); foreach ($job['terms'] as &$term) { - if (!$term['full_name']) { + if (!isset($term['full_name'])) { $term['full_name'] = $term_id_to_name[$term['jtid']]; } } diff --git a/templates/profile/mentor.tpl b/templates/profile/mentor.tpl index 56951e6..a24d2c1 100644 --- a/templates/profile/mentor.tpl +++ b/templates/profile/mentor.tpl @@ -24,7 +24,7 @@
{icon name=information title="Afficher ma fiche référent"}Tu peux consulter ta fiche référent qui n'est accessible que par les X.
-{if (!$expertise)||(!($sectors|@count))} +{if !$expertise || !t($sectors) || !($sectors|@count)}
{icon name=error title="Attention"} Attention : pour figurer dans la base de données des mentors, il faut remplir la dernière case en bas de cette page et avoir au moins un secteur d'activité de prédilection.
-- 2.1.4