aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-21 23:33:56 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-21 23:33:56 +0000
commit40a11658a9f54d04f94d3febc204d09a86622e3e (patch)
tree96fd59aed7a124f73faa74d25a0f76d6d8233da4 /category.php
parent5c5c69f9a03eb956399d1394decfb4092c4959da (diff)
Php warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@311 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r--category.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/category.php b/category.php
index 08c684709..20dfaed9f 100644
--- a/category.php
+++ b/category.php
@@ -285,8 +285,8 @@ if ( isset( $page['cat'] ) and $page['cat_nb_images'] != 0 )
$file = get_filename_wo_extension( $row['file'] );
// name of the picture
- if ( $row['name'] != '' ) $name = $row['name'];
- else $name = str_replace( '_', ' ', $file );
+ if ( isset( $row['name'] ) and $row['name'] != '' ) $name = $row['name'];
+ else $name = str_replace( '_', ' ', $file );
if ( $page['cat'] == 'search' )
{