Publicity of the job was not always properly initialized.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 11 Oct 2010 14:29:53 +0000 (16:29 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 11 Oct 2010 14:29:53 +0000 (16:29 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/profile/jobs.inc.php

index ba594b9..719d663 100644 (file)
@@ -225,6 +225,9 @@ class ProfileSettingJob implements ProfileSetting
                 unset($value[$key]);
                 continue;
             }
+            if (!isset($job['pub']) || !$job['pub']) {
+                $job['pub'] = 'private';
+            }
             $value[$key] = $job;
         }
         foreach ($value as $key => &$job) {