From: Stéphane Jacob Date: Sat, 22 Jan 2011 18:30:10 +0000 (+0100) Subject: Only cleans existing entreprise. X-Git-Tag: xorg/1.0.2~30 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1d36c1258915eac8bdd59746ce73c702e40f33a3;p=platal.git Only cleans existing entreprise. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/jobs.inc.php b/modules/profile/jobs.inc.php index 4726e94..f0748cb 100644 --- a/modules/profile/jobs.inc.php +++ b/modules/profile/jobs.inc.php @@ -224,7 +224,7 @@ class ProfileSettingJob implements ProfileSetting } if (isset($job['removed']) && $job['removed']) { - if ($job['name'] == '' && $entreprise) { + if ($job['name'] == '' && $entreprise && isset($entreprise[$entr_val - 1])) { $entreprise[$entr_val - 1]->clean(); } unset($value[$key]);