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:
parent
1121543ad9
commit
95b215d340
1 changed files with 2 additions and 4 deletions
|
@ -85,10 +85,8 @@ function is_group_allowed( $category_id, $restrictions )
|
|||
$query.= ' WHERE id = '.$category_id;
|
||||
$query.= ';';
|
||||
$row = mysql_fetch_array( mysql_query( $query ) );
|
||||
if ( $row['id_uppercat'] == '' )
|
||||
{
|
||||
$is_root = true;
|
||||
}
|
||||
if ( !isset( $row['id_uppercat'] ) ) $row['id_uppercat'] = '';
|
||||
if ( $row['id_uppercat'] == '' ) $is_root = true;
|
||||
$category_id = $row['id_uppercat'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue