mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
Php warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@311 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -404,7 +404,7 @@ function update_category( $id = 'all' )
|
||||
$row = mysql_fetch_array( mysql_query( $query ) );
|
||||
// if the category has no representative picture (ie
|
||||
// representative_picture_id == NULL) we don't update anything
|
||||
if ( $row['representative_picture_id'] != '' )
|
||||
if ( isset( $row['representative_picture_id'] ) )
|
||||
{
|
||||
$query = 'SELECT image_id';
|
||||
$query.= ' FROM '.PREFIX_TABLE.'image_category';
|
||||
@@ -691,7 +691,7 @@ function update_uppercats( $category_id )
|
||||
array_push( $uppercats, $category_id );
|
||||
$uppercat = $page['plain_structure'][$category_id]['id_uppercat'];
|
||||
|
||||
while ( $uppercat != '' )
|
||||
while ( $uppercat != 'NULL' )
|
||||
{
|
||||
array_push( $uppercats, $uppercat );
|
||||
$category_id = $page['plain_structure'][$category_id]['id_uppercat'];
|
||||
|
||||
Reference in New Issue
Block a user