Php Warning correction

git-svn-id: http://piwigo.org/svn/branches/release-1_3@335 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub 2004-01-30 22:49:59 +00:00
parent 1121543ad9
commit 95b215d340

View file

@ -85,10 +85,8 @@ function is_group_allowed( $category_id, $restrictions )
$query.= ' WHERE id = '.$category_id; $query.= ' WHERE id = '.$category_id;
$query.= ';'; $query.= ';';
$row = mysql_fetch_array( mysql_query( $query ) ); $row = mysql_fetch_array( mysql_query( $query ) );
if ( $row['id_uppercat'] == '' ) if ( !isset( $row['id_uppercat'] ) ) $row['id_uppercat'] = '';
{ if ( $row['id_uppercat'] == '' ) $is_root = true;
$is_root = true;
}
$category_id = $row['id_uppercat']; $category_id = $row['id_uppercat'];
} }