diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-01-24 22:57:36 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-01-24 22:57:36 +0000 |
commit | e39dc7c0ab3aef034bd5b8720b2b7ea1a21f96a7 (patch) | |
tree | e76950d656d2d9ce47c96bcd9ca726297b6baebc /admin/cat_modify.php | |
parent | c882b2691591950624a6553811fdeda91aa50b04 (diff) |
Php Warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@319 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/cat_modify.php')
-rw-r--r-- | admin/cat_modify.php | 3 |
1 files changed, 2 insertions, 1 deletions
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' ); |