From e39dc7c0ab3aef034bd5b8720b2b7ea1a21f96a7 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 24 Jan 2004 22:57:36 +0000 Subject: Php Warnings correction git-svn-id: http://piwigo.org/svn/branches/release-1_3@319 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_modify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'admin/cat_modify.php') diff --git a/admin/cat_modify.php b/admin/cat_modify.php index 4cf301cb5..76e952ab9 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -118,7 +118,7 @@ $result = get_cat_info( $row['id'] ); $cat_name = get_cat_display_name( $result['name'], ' - ', '' ); $vtp->setVar( $sub, 'cat:name', $cat_name ); // cat dir -if ( $row['dir'] != '' ) +if ( isset( $row['dir'] ) and $row['dir'] != '' ) { $vtp->addSession( $sub, 'storage' ); $vtp->setVar( $sub, 'storage.dir', $row['dir'] ); @@ -137,6 +137,7 @@ if ( $row['site_id'] != 1 ) $vtp->closeSession( $sub, 'server' ); } $vtp->setVar( $sub, 'name', $row['name'] ); +if ( !isset( $row['comment'] ) ) $row['comment'] = ''; $vtp->setVar( $sub, 'comment', $row['comment'] ); // status : public, private... $options = get_enums( PREFIX_TABLE.'categories', 'status' ); -- cgit v1.2.3