aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-30 22:33:42 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-30 22:33:42 +0000
commit6ea2c1b7d9faa4ed2075ee767eb74d74a9d53f7e (patch)
treee6e3e41b4319ed01d9d1a4e03e5cca958ede23b6 /admin
parent9e4078def401cd4b6fb93e8691e899ef6a2023e6 (diff)
Php warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@330 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/cat_list.php3
1 files changed, 3 insertions, 0 deletions
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 ?