From 855398f63e4215ed16413a89f781dd2f6cffa231 Mon Sep 17 00:00:00 2001 From: gweltas Date: Thu, 15 Jan 2004 00:11:00 +0000 Subject: Corretion of PHP warnings git-svn-id: http://piwigo.org/svn/branches/release-1_3@279 68402e56-0260-453c-a942-63ccdbb3a9ee --- profile.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'profile.php') diff --git a/profile.php b/profile.php index 95f9733aa..b900d1be3 100644 --- a/profile.php +++ b/profile.php @@ -115,11 +115,7 @@ if ( isset( $_POST['submit'] ) ) mysql_query( $query ); } // redirection - $url = 'category.php?cat='.$page['cat'].'&expand='.$_GET['expand']; - if ( $page['cat'] == 'search' ) - { - $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; - } + $url = 'category.php'; if ( $_POST['create_cookie'] != 1 ) $url = add_session_id( $url, true ); header( 'Request-URI: '.$url ); header( 'Content-Location: '.$url ); @@ -135,11 +131,7 @@ $tpl = array( 'customize_page_title','customize_title','password','new', 'reg_confirm','submit','create_cookie' ); templatize_array( $tpl, 'lang', $handle ); //----------------------------------------------------------------- form action -$url = './profile.php?cat='.$page['cat'].'&expand='.$page['expand']; -if ( $page['cat'] == 'search' ) -{ - $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; -} +$url = './profile.php'; $vtp->setGlobalVar( $handle, 'form_action', add_session_id( $url ) ); //-------------------------------------------------------------- errors display if ( count( $errors ) != 0 ) -- cgit v1.2.3