diff options
author | z0rglub <z0rglub@piwigo.org> | 2004-01-21 23:33:56 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2004-01-21 23:33:56 +0000 |
commit | 40a11658a9f54d04f94d3febc204d09a86622e3e (patch) | |
tree | 96fd59aed7a124f73faa74d25a0f76d6d8233da4 /admin/include | |
parent | 5c5c69f9a03eb956399d1394decfb4092c4959da (diff) |
Php warnings correction
git-svn-id: http://piwigo.org/svn/branches/release-1_3@311 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r-- | admin/include/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index b049914dc..b761c36fe 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -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']; |