mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
Minor corrections of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@276 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+2
-2
@@ -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'] );
|
||||
|
||||
Reference in New Issue
Block a user