From 3770785c3877e753fd4d193247ef7970e061a920 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Tue, 16 Oct 2012 14:50:16 +0000 Subject: [PATCH] Fix #1324 --- bureau/admin/head.php | 7 +------ bureau/class/config.php | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) 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; +} + ?>