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))
-$oldid=intval(isset($_COOKIE['oldid'])?$_COOKIE['oldid']:''); -$isinvited=false; -if ($admin->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 "