diff options
author | gweltas <gweltas@piwigo.org> | 2004-01-12 23:41:53 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-01-12 23:41:53 +0000 |
commit | 0fa0c8bb07c80884ac8b79560ba4c4119abfcd5c (patch) | |
tree | 520a704560749c2e5a981092bae7db99e34cf27b /category.php | |
parent | 7b8d0b8dd8d3f5fa25dedaadb922525e7c95ee3b (diff) |
Minor corrections of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@276 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | category.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/category.php b/category.php index 23acd011a..cb6b48777 100644 --- a/category.php +++ b/category.php @@ -34,7 +34,7 @@ if ( isset( $_GET['act'] ) && $_GET['act'] == 'logout' && isset( $_COOKIE['id'] exit(); } //-------------------------------------------------- access authorization check -if ( isset( $_GET['act'] )) +if ( isset( $_GET['cat'] )) check_cat_id( $_GET['cat'] ); check_login_authorization(); if ( isset( $page['cat'] ) && is_numeric( $page['cat'] ) ) @@ -269,7 +269,7 @@ if ( isset( $page['cat'] ) and $page['cat_nb_images'] != 0 ) while ( $row = mysql_fetch_array( $result ) ) { // retrieving the storage dir of the picture - if ( $array_cat_directories[$row['storage_category_id']] == '' ) + if ( !isset($array_cat_directories[$row['storage_category_id']])) { $array_cat_directories[$row['storage_category_id']] = get_complete_dir( $row['storage_category_id'] ); |