diff options
author | gweltas <gweltas@piwigo.org> | 2004-01-15 00:11:00 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-01-15 00:11:00 +0000 |
commit | 855398f63e4215ed16413a89f781dd2f6cffa231 (patch) | |
tree | b1c34cc609930352612e9e2ffbc88d91c33e9890 /category.php | |
parent | fb880db771f2ceb361fa8d8a1b065b1a564f3e52 (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 'category.php')
-rw-r--r-- | category.php | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/category.php b/category.php index cb6b48777..ffcece01d 100644 --- a/category.php +++ b/category.php @@ -462,21 +462,22 @@ if ( isset ( $page['cat'] ) ) $vtp->setVar( $handle, 'cat_infos.cat_name', get_cat_display_name( $page['cat_name'], ' - ', 'font-style:italic;' ) ); + // upload a picture in the category + if ( $page['cat_site_id'] == 1 + and $conf['upload_available'] + and $page['cat_uploadable'] ) + { + $vtp->addSession( $handle, 'upload' ); + $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand']; + $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) ); + $vtp->closeSession( $handle, 'upload' ); + } } else { $vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] ); } - // upload a picture in the category - if ( $page['cat_site_id'] == 1 - and $conf['upload_available'] - and $page['cat_uploadable'] ) - { - $vtp->addSession( $handle, 'upload' ); - $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand']; - $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) ); - $vtp->closeSession( $handle, 'upload' ); - } + $vtp->closeSession( $handle, 'cat_infos' ); } //------------------------------------------------------------ log informations |