aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-01-15 00:11:00 +0000
committergweltas <gweltas@piwigo.org>2004-01-15 00:11:00 +0000
commit855398f63e4215ed16413a89f781dd2f6cffa231 (patch)
treeb1c34cc609930352612e9e2ffbc88d91c33e9890 /profile.php
parentfb880db771f2ceb361fa8d8a1b065b1a564f3e52 (diff)
Corretion of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@279 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php12
1 files changed, 2 insertions, 10 deletions
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'].'&amp;expand='.$page['expand'];
-if ( $page['cat'] == 'search' )
-{
- $url.= '&amp;search='.$_GET['search'].'&amp;mode='.$_GET['mode'];
-}
+$url = './profile.php';
$vtp->setGlobalVar( $handle, 'form_action', add_session_id( $url ) );
//-------------------------------------------------------------- errors display
if ( count( $errors ) != 0 )