mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +02:00
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:
+11
-10
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user