Php Warnings correction

git-svn-id: http://piwigo.org/svn/branches/release-1_3@319 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
z0rglub
2004-01-24 22:57:36 +00:00
parent c882b26915
commit e39dc7c0ab
5 changed files with 13 additions and 5 deletions

View File

@@ -320,7 +320,10 @@ function check_favorites( $user_id )
$row = mysql_fetch_array( mysql_query( $query ) );
$status = $row['status'];
// retrieving all the restricted categories for this user
$restricted_cat = explode( ',', $row['forbidden_categories'] );
if ( isset( $row['forbidden_categories'] ) )
$restricted_cat = explode( ',', $row['forbidden_categories'] );
else
$restricted_cat = array();
// retrieving all the favorites for this user and comparing their
// categories to the restricted categories
$query = 'SELECT image_id';