Correction of php warnings

git-svn-id: http://piwigo.org/svn/branches/release-1_3@280 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas
2004-01-15 17:06:45 +00:00
parent 855398f63e
commit 384ec739f6
8 changed files with 37 additions and 25 deletions
+3 -2
View File
@@ -71,7 +71,8 @@ $page['date_creation'] = $row['date_creation'];
$page['filesize'] = $row['filesize'];
$page['width'] = $row['width'];
$page['height'] = $row['height'];
$page['category_id'] = $row['category_id'];
if (is_numeric( $page['cat'] ))
$page['category_id'] = $row['category_id'];
$page['keywords'] = $row['keywords'];
$page['storage_category_id'] = $row['storage_category_id'];
// retrieving the number of the picture in its category (in order)
@@ -492,7 +493,7 @@ if ( $page['num'] < $page['cat_nb_images']-1 )
$result = mysql_query( $query );
$row = mysql_fetch_array( $result );
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'] );