diff --git a/bureau/admin/head.php b/bureau/admin/head.php index 7a613b8a..d4e23cdb 100644 --- a/bureau/admin/head.php +++ b/bureau/admin/head.php @@ -50,13 +50,8 @@ if (file_exists($lang_date_picker)) enabled) $isinvited=true; - -if ($oldid && $oldid!=$cuid) { - $isinvited=true; +if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) { echo "

"; __("Administrator session. you may return to your account or cancel this feature"); echo "

"; diff --git a/bureau/class/config.php b/bureau/class/config.php index 90ce648f..1973aed9 100644 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -174,4 +174,12 @@ for($i=0;$ienabled) $isinvited=true; + +if ($oldid && $oldid!=$cuid) { + $isinvited=true; +} + ?>