mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
+3
-2
@@ -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'] );
|
||||
|
||||
Reference in New Issue
Block a user