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 --- picture.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'picture.php') diff --git a/picture.php b/picture.php index 783a324fa..49aa9fd70 100644 --- a/picture.php +++ b/picture.php @@ -234,7 +234,7 @@ if ( $page['num'] >= 1 ) $result = mysql_query( $query ); $row = mysql_fetch_array( $result ); - if ( $array_cat_directories[$row['storage_category_id']] == '' ) + if ( !isset($array_cat_directories[$row['storage_category_id']]) ) { $array_cat_directories[$row['storage_category_id']] = get_complete_dir( $row['storage_category_id'] ); @@ -281,7 +281,7 @@ else $intitule_cat = $page['title']; } -if ( $array_cat_directories[$page['storage_category_id']] == '' ) +if ( !isset($array_cat_directories[$page['storage_category_id']]) ) { $array_cat_directories[$page['storage_category_id']] = get_complete_dir( $page['storage_category_id'] ); @@ -289,7 +289,7 @@ if ( $array_cat_directories[$page['storage_category_id']] == '' ) $cat_directory = $array_cat_directories[$page['storage_category_id']]; $n = $page['num'] + 1; -$intitule_titre = replace_space( $intitule_cat." - " ).$n.'/'. +$intitule_titre = replace_space( $intitule_cat." - " ).$n.'/'; $intitule_titre.= $page['cat_nb_images']."
"; if ( $page['name'] != "" ) { @@ -722,7 +722,8 @@ if ( $conf['show_comments'] ) if ( !$user['is_the_guest'] ) { $vtp->addSession( $handle, 'author_known' ); - $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); + if (isset($user['pseudo'])) + $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); $vtp->closeSession( $handle, 'author_known' ); } else -- cgit v1.2.3