Corretion of PHP warnings

git-svn-id: http://piwigo.org/svn/branches/release-1_3@279 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-01-15 00:11:00 +00:00
parent fb880db771
commit 855398f63e
5 changed files with 21 additions and 27 deletions
+11 -10
View File
@@ -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