Bug in preference
This commit is contained in:
parent
b140eddef5
commit
f1a3808b6d
2 changed files with 8 additions and 13 deletions
|
|
@ -87,19 +87,8 @@ if ( isset ($_POST['val']) )
|
|||
// comta style
|
||||
|
||||
include_once ("user_menu.php");
|
||||
if ( isset ($_REQUEST['gDossier']) )
|
||||
{
|
||||
if ( $_REQUEST['gDossier'] != 0 )
|
||||
{
|
||||
echo '<div class="u_tmenu">';
|
||||
echo menu_tool('user_pref.php');
|
||||
echo "</div>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<h2 class=\"info\"> Préférences</h2>";
|
||||
}
|
||||
echo "<h2 class=\"info\"> Préférences</h2>";
|
||||
|
||||
require_once("pref.inc.php");
|
||||
html_page_stop();
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ echo '<DIV class="content">';
|
|||
//----------------------------------------------------------------------
|
||||
//
|
||||
global $g_user;
|
||||
$cn=Dossier::connect();
|
||||
$g_user=new User($cn);
|
||||
$inside_dossier = false;
|
||||
|
||||
if (isset($_REQUEST['gDossier']))
|
||||
|
|
@ -218,7 +220,11 @@ if (isset($_POST['val']))
|
|||
{
|
||||
echo HtmlInput::button_anchor(_('Retour'), 'user_login.php?');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo HtmlInput::button_anchor(_('Retour'), 'do.php?'.Dossier::get());
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo "</DIV>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue