aboutsummaryrefslogtreecommitdiffstats
path: root/picture.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 /picture.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 '')
-rw-r--r--picture.php9
1 files changed, 5 insertions, 4 deletions
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']."<br />";
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