From 6ea2c1b7d9faa4ed2075ee767eb74d74a9d53f7e Mon Sep 17 00:00:00 2001 From: z0rglub Date: Fri, 30 Jan 2004 22:33:42 +0000 Subject: Php warnings correction git-svn-id: http://piwigo.org/svn/branches/release-1_3@330 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/cat_list.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/cat_list.php b/admin/cat_list.php index 4f32b5ee1..02330faba 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -283,6 +283,8 @@ function display_cat_manager( $id_uppercat, $indent, $query.= ';'; $result = mysql_query( $query ); $row = mysql_fetch_array( $result ); + if ( !isset( $row['min'] ) ) $row['min'] = 0; + if ( !isset( $row['max'] ) ) $row['max'] = 0; $min_rank = $row['min']; $max_rank = $row['max']; @@ -308,6 +310,7 @@ function display_cat_manager( $id_uppercat, $indent, while ( $row = mysql_fetch_array( $result ) ) { $subcat_visible = true; + if ( !isset( $row['dir'] ) ) $row['dir'] = ''; $vtp->addSession( $sub, 'cat' ); // is the category expanded or not ? -- cgit v1.2.3